org.apache.commons.configuration
Class XMLConfiguration.XMLNode
java.lang.Object
org.apache.commons.configuration.tree.DefaultConfigurationNode
org.apache.commons.configuration.HierarchicalConfiguration.Node
org.apache.commons.configuration.XMLConfiguration.XMLNode
- All Implemented Interfaces:
- Cloneable, ConfigurationNode, Serializable
- Enclosing class:
- XMLConfiguration
- class XMLConfiguration.XMLNode
- extends HierarchicalConfiguration.Node
A specialized Node
class that is connected with an XML
element. Changes on a node are also performed on the associated element.
Method Summary |
protected void |
removeReference()
Updates the associated XML elements when a node is removed. |
void |
setValue(Object value)
Sets the value of this node. |
Methods inherited from class org.apache.commons.configuration.tree.DefaultConfigurationNode |
addAttribute, addChild, checkState, clone, createSubNodes, getAttribute, getAttributeCount, getAttributeCount, getAttributes, getAttributes, getChild, getChildren, getChildren, getChildrenCount, getChildrenCount, getName, getParentNode, getReference, getValue, isAttribute, isDefined, removeAttribute, removeAttribute, removeAttributes, removeChild, removeChild, removeChildren, setAttribute, setName, setParentNode, setReference, visit |
XMLConfiguration.XMLNode
public XMLConfiguration.XMLNode(String name,
Element elem)
- Creates a new instance of
XMLNode
and initializes it
with a name and the corresponding XML element.
- Parameters:
name
- the node's nameelem
- the XML element
setValue
public void setValue(Object value)
- Sets the value of this node. If this node is associated with an XML
element, this element will be updated, too.
- Specified by:
setValue
in interface ConfigurationNode
- Overrides:
setValue
in class DefaultConfigurationNode
- Parameters:
value
- the node's new value
removeReference
protected void removeReference()
- Updates the associated XML elements when a node is removed.
- Overrides:
removeReference
in class DefaultConfigurationNode
Copyright © 2001-2006 The Apache Software Foundation. All Rights Reserved.