|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.data.config.ConfigFileReader
public class ConfigFileReader
This is a Singleton Helper class to read a JGAP config file and provide a simple interface to the config properties.
| Method Summary | |
|---|---|
java.lang.String |
getValue(java.lang.String a_name)
Retrieve the value for the property with the name as in param name. |
java.util.List |
getValues(java.lang.String a_name)
Retrieve the values for the property with the name as in param name. |
static ConfigFileReader |
instance()
Method to create and access the Singleton ConfigFileReader instance. |
void |
setFileName(java.lang.String a_fileName)
Set the config file to load from. |
void |
setNS(java.lang.String a_ns)
Set the namespace for the properties that are being read from the config file at this point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ConfigFileReader instance()
public java.lang.String getValue(java.lang.String a_name)
a_name - name of the property of which the value is required
public java.util.List getValues(java.lang.String a_name)
a_name - the name of the property of which the value is required
public void setNS(java.lang.String a_ns)
a_ns - namespace for the properties being read
public void setFileName(java.lang.String a_fileName)
throws ConfigException
a_fileName - Name of the config file.
ConfigException
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||