|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.slide.util.conf.AbstractConfiguration | +--org.apache.slide.util.conf.ConfigurationElement
ConfigurationElement
is a class implementing the
Configuration
interface using a tree of Elements as
configuration container. The Elements
tree is generated from the
configuration DOM. Each Element
is encapsulated by a
ConfigurationElement
.
Field Summary |
Fields inherited from class org.apache.slide.util.conf.AbstractConfiguration |
location |
Constructor Summary | |
ConfigurationElement(Element content)
|
Method Summary | |
java.lang.String |
getAttribute(java.lang.String name)
Return the value of specified attribute. |
Configuration |
getConfiguration(java.lang.String name)
Return the first Configuration object child of this
associated with the given name. |
java.util.Enumeration |
getConfigurations(java.lang.String name)
Return an Enumeration of Configuration |
java.lang.String |
getName()
Return the name of the node. |
java.lang.String |
getValue()
Return the String value of the node. |
Methods inherited from class org.apache.slide.util.conf.AbstractConfiguration |
getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getLocation, getValue, getValueAsBoolean, getValueAsBoolean, getValueAsFloat, getValueAsFloat, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConfigurationElement(Element content)
Method Detail |
public java.lang.String getName()
Configuration
Configuration
node.public java.lang.String getValue()
Configuration
String
value of the node.
public java.lang.String getAttribute(java.lang.String name) throws ConfigurationException
Configuration
name
- The name of the parameter you ask the value of.
ConfigurationException
- If no attribute with that name exists.public Configuration getConfiguration(java.lang.String name) throws ConfigurationException
AbstractConfiguration
Configuration
object child of this
associated with the given name.
getConfiguration
in interface Configuration
getConfiguration
in class AbstractConfiguration
name
- The name of the child node.
ConfigurationException
- If no child with that name exists.public java.util.Enumeration getConfigurations(java.lang.String name) throws ConfigurationException
Configuration
Enumeration
of Configuration
elements containing all node children with the specified name.
- Parameters:
name
- The name of the children to get.
- Returns:
- Enumeration. The
Enumeration
will be
empty if there are no nodes by the specified name.
ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |