| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.configuration.tree.DefaultConfigurationNode.SubNodes
An internally used helper class for managing a collection of sub nodes.
| Constructor Summary | |
| protected  | DefaultConfigurationNode.SubNodes() | 
| Method Summary | |
|  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 subNodes)Detaches a list of sub nodes. | 
|  ConfigurationNode | getNode(int index)Returns the node with the given index. | 
|  List | getSubNodes()Returns a list with all stored sub nodes. | 
|  List | 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. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
protected DefaultConfigurationNode.SubNodes()
| Method Detail | 
public void addNode(ConfigurationNode node)
node - the node to addpublic boolean removeNode(ConfigurationNode node)
node - the node to remove
public boolean removeNodes(String name)
name - the name
public void clear()
public ConfigurationNode getNode(int index)
IndexOutOfBoundException exception will be thrown.
index - the index (0-based)
public List getSubNodes()
public List getSubNodes(String name)
name - the name; if null is passed, all sub nodes will
 be returned
public void visit(ConfigurationNodeVisitor visitor)
visitor - the visitorprotected void detachNode(ConfigurationNode subNode)
removeReference() method gets called.
subNode - the node to be removedprotected void detachNodes(Collection subNodes)
detachNode() for each node contained in the list.
subNodes - the list with nodes to be detached| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||