|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.tree.DefaultConfigurationNode
org.apache.commons.configuration.HierarchicalConfiguration.Node
org.apache.commons.configuration.XMLConfiguration.XMLNode
class XMLConfiguration.XMLNode
A specialized Node
class that is connected with an XML
element. Changes on a node are also performed on the associated element.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.configuration.tree.DefaultConfigurationNode |
---|
DefaultConfigurationNode.SubNodes |
Field Summary | |
---|---|
private static long |
serialVersionUID
The serial version UID. |
Constructor Summary | |
---|---|
XMLConfiguration.XMLNode(java.lang.String name,
org.w3c.dom.Element elem)
Creates a new instance of XMLNode and initializes it
with a name and the corresponding XML element. |
Method Summary | |
---|---|
private org.w3c.dom.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(java.lang.Object value)
Sets the value of this node. |
private void |
updateAttribute()
Updates the node's value if it represents an attribute. |
private void |
updateElement(java.lang.Object value)
Updates the node's value if it represents an element node. |
Methods inherited from class org.apache.commons.configuration.HierarchicalConfiguration.Node |
---|
addChild, getParent, hasChildren, remove, remove, setParent, visit |
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
public XMLConfiguration.XMLNode(java.lang.String name, org.w3c.dom.Element elem)
XMLNode
and initializes it
with a name and the corresponding XML element.
name
- the node's nameelem
- the XML elementMethod Detail |
---|
public void setValue(java.lang.Object value)
setValue
in interface ConfigurationNode
setValue
in class DefaultConfigurationNode
value
- the node's new valueprotected void removeReference()
removeReference
in class DefaultConfigurationNode
private void updateElement(java.lang.Object value)
value
- the new valueprivate void updateAttribute()
private org.w3c.dom.Text findTextNodeForUpdate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |