|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Configuration interface represents a node in a configuration tree.
Method Summary | |
java.lang.String |
getAttribute(java.lang.String name)
Get the named attribute or null. |
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String defaultValue)
Get the named attribute. |
java.util.List |
getAttributeNames()
Get a List of attribute names. |
Configuration |
getChild(java.lang.String name)
Get the child configuration object with the given name. |
java.util.List |
getChildren()
Get a list of all child nodes. |
java.util.List |
getChildren(java.lang.String name)
Get a list of all child nodes with the given name. |
java.lang.String |
getChildValue(java.lang.String name)
Get the value of the first child configuration object with the given name. |
java.lang.String |
getChildValue(java.lang.String name,
java.lang.String defaultValue)
Get the value of the first child configuration object with the given name. |
Location |
getLocation()
Get location information for this configuration object. |
java.lang.String |
getName()
Get the node's name. |
Configuration |
getParent()
Get the parent configuration object. |
java.lang.String |
getValue()
Get the node's value or null if the node contains no data. |
java.lang.String |
getValue(java.lang.String defaultValue)
Get the node's value. |
Method Detail |
public java.lang.String getName()
public Configuration getParent()
public Configuration getChild(java.lang.String name)
name
- The child name
public java.lang.String getChildValue(java.lang.String name)
name
- The child name
public java.lang.String getChildValue(java.lang.String name, java.lang.String defaultValue)
name
- The child namedefaultValue
- The default value
public java.util.List getChildren()
public java.util.List getChildren(java.lang.String name)
name
- The child node name
public java.util.List getAttributeNames()
public java.lang.String getAttribute(java.lang.String name)
name
- The attribute name
public java.lang.String getAttribute(java.lang.String name, java.lang.String defaultValue)
name
- The attribute namedefaultValue
- The default value
public java.lang.String getValue()
public java.lang.String getValue(java.lang.String defaultValue)
defaultValue
- The default value
public Location getLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |