diff --git a/src/main/java/edu/ucsb/nceas/mdqengine/MDQconfig.java b/src/main/java/edu/ucsb/nceas/mdqengine/MDQconfig.java index f2730f00..7e524c7c 100644 --- a/src/main/java/edu/ucsb/nceas/mdqengine/MDQconfig.java +++ b/src/main/java/edu/ucsb/nceas/mdqengine/MDQconfig.java @@ -20,10 +20,11 @@ public class MDQconfig { public static Configuration config; - public MDQconfig () throws ConfigurationException, IOException { + public MDQconfig() throws ConfigurationException, IOException { boolean inServlet = false; - // If running in a servlet, have to get the config info from the webapp context, as we can't + // If running in a servlet, have to get the config info from the webapp context, + // as we can't // read from external dirs on disk. Configurations configs = new Configurations(); if (inServlet) { @@ -43,22 +44,25 @@ public MDQconfig () throws ConfigurationException, IOException { /** * Read a configuration file for a String parameter values. */ - public String getString (String paramName) throws ConfigurationException { - return(config.getString(paramName)); + public String getString(String paramName) throws ConfigurationException { + return (config.getString(paramName)); } /** * Read a configuration file for a String parameter values. */ public int getInt(String paramName) throws ConfigurationException { - return(config.getInt(paramName)); + return (config.getInt(paramName)); } + /** + * Read a configuration file and return all the keys. + */ public Iterator getKeys() { - return(config.getKeys()); + return (config.getKeys()); } - public static String readConfigParam (String paramName) throws ConfigurationException, IOException { + public static String readConfigParam(String paramName) throws ConfigurationException, IOException { String paramValue = null; try { MDQconfig cfg = new MDQconfig();