|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--dragon.config.BasicConfigureNode
Basic data structure for XML configure node
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor Summary | |
BasicConfigureNode(org.w3c.dom.Node node)
|
|
BasicConfigureNode(java.lang.String configFile)
|
|
| Method Summary | |
boolean |
exist(java.lang.String key)
|
boolean |
getBoolean(java.lang.String key)
|
boolean |
getBoolean(java.lang.String key,
boolean def)
|
double |
getDouble(java.lang.String key)
|
double |
getDouble(java.lang.String key,
double def)
|
ConfigureNode |
getFirstChild()
Gets the first object node within the current configuration node |
int |
getInt(java.lang.String key)
|
int |
getInt(java.lang.String key,
int def)
|
ConfigureNode |
getNextSibling()
Gets the next object node in parallel to the current onfiguration node |
java.lang.Class |
getNodeClass()
|
int |
getNodeID()
|
java.lang.String |
getNodeName()
|
java.lang.String |
getNodeType()
|
java.lang.String |
getParameterType(java.lang.String key)
If the parameter corresponds to an object, it returns the type (usually the interface) of the object. |
ConfigureNode |
getParentNode()
Gets the parent node of the current object node |
java.lang.String |
getString(java.lang.String key)
|
java.lang.String |
getString(java.lang.String key,
java.lang.String def)
If the given parameter exists, return its values, otherwise return the default value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicConfigureNode(java.lang.String configFile)
public BasicConfigureNode(org.w3c.dom.Node node)
| Method Detail |
public ConfigureNode getParentNode()
ConfigureNode
getParentNode in interface ConfigureNodepublic ConfigureNode getFirstChild()
ConfigureNode
getFirstChild in interface ConfigureNodepublic ConfigureNode getNextSibling()
ConfigureNode
getNextSibling in interface ConfigureNodepublic java.lang.String getNodeName()
getNodeName in interface ConfigureNodepublic int getNodeID()
getNodeID in interface ConfigureNodepublic java.lang.Class getNodeClass()
getNodeClass in interface ConfigureNodepublic java.lang.String getNodeType()
getNodeType in interface ConfigureNodepublic java.lang.String getString(java.lang.String key)
getString in interface ConfigureNode
public java.lang.String getString(java.lang.String key,
java.lang.String def)
ConfigureNode
getString in interface ConfigureNodekey - the name of the parameterdef - the default value of the parameter
public int getInt(java.lang.String key)
getInt in interface ConfigureNode
public int getInt(java.lang.String key,
int def)
getInt in interface ConfigureNodepublic boolean getBoolean(java.lang.String key)
getBoolean in interface ConfigureNode
public boolean getBoolean(java.lang.String key,
boolean def)
getBoolean in interface ConfigureNodepublic double getDouble(java.lang.String key)
getDouble in interface ConfigureNode
public double getDouble(java.lang.String key,
double def)
getDouble in interface ConfigureNodepublic boolean exist(java.lang.String key)
exist in interface ConfigureNodekey - the name of the parameter
public java.lang.String getParameterType(java.lang.String key)
ConfigureNode
getParameterType in interface ConfigureNodekey - the name of the parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||