public class BasicConfigureNode extends Object implements ConfigureNode
Basic data structure for XML configure node
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor and Description |
|---|
BasicConfigureNode(Node node) |
BasicConfigureNode(String configFile) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exist(String key) |
boolean |
getBoolean(String key) |
boolean |
getBoolean(String key,
boolean def) |
double |
getDouble(String key) |
double |
getDouble(String key,
double def) |
ConfigureNode |
getFirstChild()
Gets the first object node within the current configuration node
|
int |
getInt(String key) |
int |
getInt(String key,
int def) |
ConfigureNode |
getNextSibling()
Gets the next object node in parallel to the current onfiguration node
|
Class |
getNodeClass() |
int |
getNodeID() |
String |
getNodeName() |
String |
getNodeType() |
String |
getParameterType(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
|
String |
getString(String key) |
String |
getString(String key,
String def)
If the given parameter exists, return its values, otherwise return the default value.
|
public BasicConfigureNode(String configFile)
public BasicConfigureNode(Node node)
public ConfigureNode getParentNode()
ConfigureNodegetParentNode in interface ConfigureNodepublic ConfigureNode getFirstChild()
ConfigureNodegetFirstChild in interface ConfigureNodepublic ConfigureNode getNextSibling()
ConfigureNodegetNextSibling in interface ConfigureNodepublic String getNodeName()
getNodeName in interface ConfigureNodepublic int getNodeID()
getNodeID in interface ConfigureNodepublic Class getNodeClass()
getNodeClass in interface ConfigureNodepublic String getNodeType()
getNodeType in interface ConfigureNodepublic String getString(String key)
getString in interface ConfigureNodepublic String getString(String key, String def)
ConfigureNodegetString in interface ConfigureNodekey - the name of the parameterdef - the default value of the parameterpublic int getInt(String key)
getInt in interface ConfigureNodepublic int getInt(String key, int def)
getInt in interface ConfigureNodepublic boolean getBoolean(String key)
getBoolean in interface ConfigureNodepublic boolean getBoolean(String key, boolean def)
getBoolean in interface ConfigureNodepublic double getDouble(String key)
getDouble in interface ConfigureNodepublic double getDouble(String key, double def)
getDouble in interface ConfigureNodepublic boolean exist(String key)
exist in interface ConfigureNodekey - the name of the parameterpublic String getParameterType(String key)
ConfigureNodegetParameterType in interface ConfigureNodekey - the name of the parameterCopyright © 2018 JULIE Lab, Germany. All rights reserved.