|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Basic interface to programm against when using the Config tool.
Method Summary | |
java.util.Iterator |
children()
Enumerate my children. |
java.util.Iterator |
childrenNamed(java.lang.String key)
Enumerate children of me, having a certain name. |
int |
countChildren()
Count the number of children we have. |
int |
countChildrenNamed(java.lang.String key)
Count the number of children we have. |
boolean |
getBoolean()
Get value as a boolean. |
boolean |
getBoolean(java.lang.String path,
boolean deflt)
Get value of subnode as boolean, using default if necessary. |
ConfigFileNode |
getBranchNode()
Find the node responsible for reading this node from file. |
double |
getDouble()
Get value as a double. |
double |
getDouble(java.lang.String path,
double deflt)
Get value of subnode as double, using default when necessary. |
boolean |
getInhBoolean(java.lang.String path,
boolean deflt)
Get value of subnode as boolean searching parent nodes before using default. |
double |
getInhDouble(java.lang.String path,
double deflt)
Get value of subnode as double searching parent nodes before using default. |
int |
getInhInt(java.lang.String path,
int deflt)
Get value of subnode as int searching parent nodes before using default. |
java.lang.String |
getInhString(java.lang.String path,
java.lang.String deflt)
Get value of subnode as String searching parent nodes before using default. |
int |
getInt()
Get value as an integer. |
int |
getInt(java.lang.String path,
int deflt)
Get value of subnode as integer, using default when necessary. |
java.lang.String |
getName()
Get the name of the node. |
ConfigNode |
getParent()
Get the node above. |
java.lang.String |
getPath()
Get the complete path of the node. |
java.lang.String |
getString()
Get value as String. |
java.lang.String |
getString(java.lang.String path,
java.lang.String deflt)
Get value of subnode as String, using default when necessary. |
ConfigNode |
node(java.lang.String path)
Find sub node matching name. |
ConfigNode |
nodeInh(java.lang.String path)
Find node or parent sub node matching name. |
void |
print(java.io.PrintWriter os)
Pretty print this node with its whole subtree. |
Method Detail |
public ConfigNode node(java.lang.String path)
public ConfigNode nodeInh(java.lang.String path)
public ConfigFileNode getBranchNode()
public java.lang.String getName()
public java.lang.String getPath()
public ConfigNode getParent()
public boolean getBoolean()
public int getInt()
public double getDouble()
public java.lang.String getString()
public boolean getBoolean(java.lang.String path, boolean deflt)
public int getInt(java.lang.String path, int deflt)
public double getDouble(java.lang.String path, double deflt)
public java.lang.String getString(java.lang.String path, java.lang.String deflt)
public boolean getInhBoolean(java.lang.String path, boolean deflt)
public int getInhInt(java.lang.String path, int deflt)
public double getInhDouble(java.lang.String path, double deflt)
public java.lang.String getInhString(java.lang.String path, java.lang.String deflt)
public int countChildren()
public java.util.Iterator children()
public java.util.Iterator childrenNamed(java.lang.String key)
public int countChildrenNamed(java.lang.String key)
public void print(java.io.PrintWriter os) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |