public interface ConfigureNode
Interface of Congituration Node
A configuration node can be the root node of the configuaration XML file or the XML node for an object. An object node should have at least two attributes, type and id, which are used to search the object. Usually, the type is the interface the object implements. The id is an integer value greater than zero. An object node contains mutilple parameters which can be a simple datatype or an object.
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| 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.
|
ConfigureNode getParentNode()
ConfigureNode getFirstChild()
ConfigureNode getNextSibling()
String getNodeName()
int getNodeID()
String getNodeType()
Class getNodeClass()
String getString(String key, String def)
key - the name of the parameterdef - the default value of the parameterint getInt(String key)
int getInt(String key, int def)
boolean getBoolean(String key)
boolean getBoolean(String key, boolean def)
double getDouble(String key)
double getDouble(String key, double def)
String getParameterType(String key)
key - the name of the parameterboolean exist(String key)
key - the name of the parameterCopyright © 2018 JULIE Lab, Germany. All rights reserved.