git-svn-id: http://svn.research-infrastructures.eu/d4science/gcube/trunk/spatial-data/geonetwork@81196 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d21f758e5b
commit
77d0cdb4a2
|
@ -0,0 +1,22 @@
|
|||
package org.gcube.spatial.data.geonetwork.utils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.gcube.spatial.data.geonetwork.configuration.DefaultConfiguration;
|
||||
|
||||
public class RuntimeParameters {
|
||||
|
||||
|
||||
|
||||
private Properties props;
|
||||
|
||||
public RuntimeParameters() throws IOException {
|
||||
props.load(DefaultConfiguration.class.getResourceAsStream("query.properties"));
|
||||
}
|
||||
|
||||
public Properties getProps() {
|
||||
return props;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package org.gcube.spatial.data.geonetwork.utils;
|
||||
|
||||
public class StringValidator {
|
||||
|
||||
public static boolean isValidateString(String text){
|
||||
|
||||
if(text == null || text.isEmpty())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue