org.apache.commons.configuration
class XMLConfiguration.XMLNode extends Node
Node
class that is connected with an XML
element. Changes on a node are also performed on the associated element.
Field Summary | |
---|---|
static long | serialVersionUID
The serial version UID. |
Constructor Summary | |
---|---|
XMLNode(String name, Element elem)
Creates a new instance of XMLNode and initializes it
with a name and the corresponding XML element.
|
Method Summary | |
---|---|
Text | findTextNodeForUpdate()
Returns the only text node of this element for update. |
protected void | removeReference()
Updates the associated XML elements when a node is removed. |
void | setValue(Object value)
Sets the value of this node. |
void | updateAttribute()
Updates the node's value if it represents an attribute.
|
void | updateElement(Object value)
Updates the node's value if it represents an element node.
|
XMLNode
and initializes it
with a name and the corresponding XML element.
Parameters: name the node's name elem the XML element
Returns: the first and only text node
Parameters: value the node's new value
Parameters: value the new value