|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.misc.Configuration
public class Configuration
A place to parse and retrieve the text keys and text values
of a configuration, especially from a file.
Its mini-parser will accept keys and values in the form
key=value
where the first = sign is interpreted as the delimiter.
Keys are case insensitive.
Constructor Summary | |
---|---|
Configuration(java.io.File configurationFile)
|
Method Summary | |
---|---|
java.io.File |
getFile()
Get the File from which this Configuration was parsed. |
java.util.Enumeration |
getKeys()
|
java.lang.String |
getValue(java.lang.String key)
Retrieves the value of a key. |
java.lang.StringBuffer |
render()
Renders the entire Configuration to a StringBuffer. |
boolean |
valueSet(java.lang.String key)
Returns whether a value has been set for some key. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configuration(java.io.File configurationFile) throws Scheherexception
Scheherexception
Method Detail |
---|
public java.lang.StringBuffer render()
public java.lang.String getValue(java.lang.String key) throws Scheherexception
Scheherexception
public boolean valueSet(java.lang.String key)
public java.io.File getFile()
public java.util.Enumeration getKeys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |