|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jxpath.ri.model.jdom.JDOMNodeIterator
public class JDOMNodeIterator
An iterator of children of a JDOM Node.
| Field Summary | |
|---|---|
private java.lang.Object |
child
|
private java.util.List |
children
|
private int |
index
|
private NodeTest |
nodeTest
|
private NodePointer |
parent
|
private int |
position
|
private boolean |
reverse
|
| Constructor Summary | |
|---|---|
JDOMNodeIterator(NodePointer parent,
NodeTest nodeTest,
boolean reverse,
NodePointer startWith)
Create a new JDOMNodeIterator. |
|
| Method Summary | |
|---|---|
NodePointer |
getNodePointer()
Get the NodePointer at the current position. |
int |
getPosition()
Get the current iterator position. |
private boolean |
next()
Iterate to next pointer. |
private boolean |
previous()
This is actually never invoked during the normal evaluation of xpaths - an iterator is always going forward, never backwards. |
boolean |
setPosition(int position)
Set the new current position. |
private boolean |
testChild()
Test a child node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private NodePointer parent
private NodeTest nodeTest
private boolean reverse
private int position
private int index
private java.util.List children
private java.lang.Object child
| Constructor Detail |
|---|
public JDOMNodeIterator(NodePointer parent,
NodeTest nodeTest,
boolean reverse,
NodePointer startWith)
parent - pointernodeTest - testreverse - whether to iterate in reversestartWith - starting pointer| Method Detail |
|---|
public NodePointer getNodePointer()
NodeIterator
getNodePointer in interface NodeIteratorpublic int getPosition()
NodeIterator
getPosition in interface NodeIteratorpublic boolean setPosition(int position)
NodeIterator
setPosition in interface NodeIteratorposition - the position to set
true if there is a node at position.private boolean previous()
private boolean next()
private boolean testChild()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||