|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gersteinlab.act.util.Config
public class Config
This class defines a set of configurations. It is similar to java.util.Properties, but the order of the configurations is maintained. Also, if the same name is shared by multiple entries, all the entries will be stored and associated with the name.
Constructor Summary | |
---|---|
Config(java.io.File configFile)
Create a new configuration set by reading from a configuration file. |
Method Summary | |
---|---|
java.lang.String |
getConfig(java.lang.String configName)
Get the value a certain configuration. |
java.util.Set<java.lang.String> |
getConfigNames()
Get the names of the configurations. |
java.util.List<java.lang.String> |
getConfigs(java.lang.String configName)
Get the values of a certain configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Config(java.io.File configFile) throws java.io.IOException
configFile
- The configuration file
java.io.IOException
Method Detail |
---|
public java.util.List<java.lang.String> getConfigs(java.lang.String configName)
configName
- The name of the configuration
public java.lang.String getConfig(java.lang.String configName)
configName
- The name of the configuration
public java.util.Set<java.lang.String> getConfigNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |