| java.lang.Object org.apache.commons.configuration.tree.xpath.ConfigurationNodeIteratorBase org.apache.commons.configuration.tree.xpath.ConfigurationNodeIteratorChildren
ConfigurationNodeIteratorChildren | class ConfigurationNodeIteratorChildren extends ConfigurationNodeIteratorBase (Code) | | A specialized iterator implementation for the child nodes of a configuration
node.
since: 1.3 author: Oliver Heger version: $Id: ConfigurationNodeIteratorChildren.java 439648 2006-09-02 20:42:10Z oheger $ |
Constructor Summary | |
public | ConfigurationNodeIteratorChildren(NodePointer parent, NodeTest nodeTest, boolean reverse, NodePointer startsWith) Creates a new instance of ConfigurationNodeIteratorChildren
and initializes it. |
ConfigurationNodeIteratorChildren | public ConfigurationNodeIteratorChildren(NodePointer parent, NodeTest nodeTest, boolean reverse, NodePointer startsWith)(Code) | | Creates a new instance of ConfigurationNodeIteratorChildren
and initializes it.
Parameters: parent - the parent pointer Parameters: nodeTest - the test selecting the sub nodes Parameters: reverse - the reverse flag Parameters: startsWith - the first element of the iteration |
createSubNodeList | protected List createSubNodeList(ConfigurationNode node, NodeTest test)(Code) | | Creates the list with sub nodes. This method gets called during
initialization phase. It finds out, based on the given test, which nodes
must be iterated over.
Parameters: node - the current node Parameters: test - the test object a list with the matching nodes |
findStartIndex | protected int findStartIndex(ConfigurationNode node, ConfigurationNode startNode)(Code) | | Determines the start position of the iteration. Finds the index of the
given start node in the children of the root node.
Parameters: node - the root node Parameters: startNode - the start node the start node's index |
|
|