This commit is contained in:
Fabio Sinibaldi 2013-09-10 09:58:40 +00:00
parent d21f758e5b
commit 77d0cdb4a2
2 changed files with 35 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}