protected static class DefaultConfigurationNode.SubNodes extends Object
| Modifier | Constructor and Description | 
|---|---|
| protected  | DefaultConfigurationNode.SubNodes() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addNode(ConfigurationNode node)Adds a new sub node. | 
| void | clear()Removes all sub nodes. | 
| protected void | detachNode(ConfigurationNode subNode)This method is called whenever a sub node is removed from this
 object. | 
| protected void | detachNodes(Collection<? extends ConfigurationNode> subNodes)Detaches a list of sub nodes. | 
| ConfigurationNode | getNode(int index)Returns the node with the given index. | 
| List<ConfigurationNode> | getSubNodes()Returns a list with all stored sub nodes. | 
| List<ConfigurationNode> | getSubNodes(String name)Returns a list of the sub nodes with the given name. | 
| boolean | removeNode(ConfigurationNode node)Removes a sub node. | 
| boolean | removeNodes(String name)Removes all sub nodes with the given name. | 
| void | visit(ConfigurationNodeVisitor visitor)Let the passed in visitor visit all sub nodes. | 
public void addNode(ConfigurationNode node)
node - the node to addpublic boolean removeNode(ConfigurationNode node)
node - the node to removepublic boolean removeNodes(String name)
name - the namepublic void clear()
public ConfigurationNode getNode(int index)
IndexOutOfBoundException exception will be thrown.index - the index (0-based)public List<ConfigurationNode> getSubNodes()
public List<ConfigurationNode> getSubNodes(String name)
name - the name; if null is passed, all sub nodes will
 be returnedpublic void visit(ConfigurationNodeVisitor visitor)
visitor - the visitorprotected void detachNode(ConfigurationNode subNode)
removeReference() method gets called.subNode - the node to be removedprotected void detachNodes(Collection<? extends ConfigurationNode> subNodes)
detachNode() for each node contained in the list.subNodes - the list with nodes to be detachedCopyright © 2001–2013 The Apache Software Foundation. All rights reserved.