|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.utils.ConfigurationFile
Manages a configuration file contained in the distributed software.
The file handles entries of the form entryName parameter1 parameter2 ....
Lines starting with a # represent comments and are ignored.
Empty lines are likewise ignored. Leading and trailing spaces also are
ignored.
| Constructor Summary | |
|---|---|
ConfigurationFile(java.lang.String path)
Loads a configuration file into memory. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getValue(java.lang.String variable)
Returns the values of a given variable. |
java.util.Iterator |
getVariables()
Returns all defined variables. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationFile(java.lang.String path)
throws ConfigurationException
path - the path to the configuration file; the path is
given as an URL relative to the base directory of
the program
ConfigurationException - if there is any problem while
loading the configuration data| Method Detail |
|---|
public java.lang.String[] getValue(java.lang.String variable)
variable - the variable name
public java.util.Iterator getVariables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||