|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.configuration.tree.xpath.ConfigurationNodeIteratorBase
org.apache.commons.configuration.tree.xpath.ConfigurationNodeIteratorChildren
A specialized iterator implementation for the child nodes of a configuration node.
| Constructor Summary | |
ConfigurationNodeIteratorChildren(org.apache.commons.jxpath.ri.model.NodePointer parent,
org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest,
boolean reverse,
org.apache.commons.jxpath.ri.model.NodePointer startsWith)
Creates a new instance of ConfigurationNodeIteratorChildren
and initializes it. |
|
| Method Summary | |
protected org.apache.commons.jxpath.ri.model.NodePointer |
createNodePointer(ConfigurationNode node)
Creates the configuration node pointer for the current position. |
protected List |
createSubNodeList(ConfigurationNode node,
org.apache.commons.jxpath.ri.compiler.NodeTest test)
Creates the list with sub nodes. |
protected int |
findStartIndex(ConfigurationNode node,
ConfigurationNode startNode)
Determines the start position of the iteration. |
protected int |
getMaxPosition()
Returns the maximum position for this iterator. |
org.apache.commons.jxpath.ri.model.NodePointer |
getNodePointer()
Returns the current node pointer. |
protected org.apache.commons.jxpath.ri.model.NodePointer |
getParent()
Returns the parent node pointer. |
int |
getPosition()
Returns the position of the iteration. |
protected int |
getStartOffset()
Returns the start offset of the iteration. |
protected void |
initSubNodeList(List nodes)
Initializes the list of sub nodes for the iteration. |
protected int |
positionToIndex(int pos)
Returns the index in the data list for the given position. |
boolean |
setPosition(int pos)
Sets the position of the iteration. |
protected void |
setStartOffset(int startOffset)
Sets the start offset of the iteration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConfigurationNodeIteratorChildren(org.apache.commons.jxpath.ri.model.NodePointer parent,
org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest,
boolean reverse,
org.apache.commons.jxpath.ri.model.NodePointer startsWith)
ConfigurationNodeIteratorChildren
and initializes it.
parent - the parent pointernodeTest - the test selecting the sub nodesreverse - the reverse flagstartsWith - the first element of the iteration| Method Detail |
protected List createSubNodeList(ConfigurationNode node,
org.apache.commons.jxpath.ri.compiler.NodeTest test)
node - the current nodetest - the test object
protected int findStartIndex(ConfigurationNode node,
ConfigurationNode startNode)
node - the root nodestartNode - the start node
public int getPosition()
getPosition in interface org.apache.commons.jxpath.ri.model.NodeIteratorpublic boolean setPosition(int pos)
setPosition in interface org.apache.commons.jxpath.ri.model.NodeIteratorpos - the new position
public org.apache.commons.jxpath.ri.model.NodePointer getNodePointer()
getNodePointer in interface org.apache.commons.jxpath.ri.model.NodeIteratorprotected org.apache.commons.jxpath.ri.model.NodePointer getParent()
protected int getStartOffset()
protected void setStartOffset(int startOffset)
startOffset - the start offsetprotected void initSubNodeList(List nodes)
nodes - the list with the sub nodesprotected int getMaxPosition()
protected org.apache.commons.jxpath.ri.model.NodePointer createNodePointer(ConfigurationNode node)
getNodePointer(). Derived classes
must create the correct pointer object.
node - the current configuration node
protected int positionToIndex(int pos)
pos - the position (1-based)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||