|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.configuration.tree.DefaultConfigurationNode org.apache.commons.configuration.tree.ViewNode
public class ViewNode
A specialized node implementation to be used in view configurations.
Some configurations provide a logical view on the nodes of other configurations. These configurations construct their own hierarchy of nodes based on the node trees of their source configurations. This special node class can be used for this purpose. It allows child nodes and attributes to be added without changing their parent node. So a node can belong to a hierarchy of nodes of a source configuration, but be also contained in a view configuration.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.configuration.tree.DefaultConfigurationNode |
---|
DefaultConfigurationNode.SubNodes |
Constructor Summary | |
---|---|
ViewNode()
|
Method Summary | |
---|---|
void |
addAttribute(ConfigurationNode attr)
Adds an attribute to this view node. |
void |
addChild(ConfigurationNode child)
Adds a child node to this view node. |
void |
appendAttributes(ConfigurationNode source)
Adds all attribute nodes of the given source node to this view node. |
void |
appendChildren(ConfigurationNode source)
Adds all child nodes of the given source node to this view node. |
Methods inherited from class org.apache.commons.configuration.tree.DefaultConfigurationNode |
---|
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, removeReference, setAttribute, setName, setParentNode, setReference, setValue, visit |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewNode()
Method Detail |
---|
public void addAttribute(ConfigurationNode attr)
addAttribute
in interface ConfigurationNode
addAttribute
in class DefaultConfigurationNode
attr
- the attribute node to be addedpublic void addChild(ConfigurationNode child)
addChild
in interface ConfigurationNode
addChild
in class DefaultConfigurationNode
child
- the child node to be addedpublic void appendAttributes(ConfigurationNode source)
source
- the source nodepublic void appendChildren(ConfigurationNode source)
source
- the source node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |