|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.ri.model.dom.DOMNodeIterator
public class DOMNodeIterator
An iterator of children of a DOM Node.
Field Summary | |
---|---|
private org.w3c.dom.Node |
child
|
private org.w3c.dom.Node |
node
|
private NodeTest |
nodeTest
|
private NodePointer |
parent
|
private int |
position
|
private boolean |
reverse
|
Constructor Summary | |
---|---|
DOMNodeIterator(NodePointer parent,
NodeTest nodeTest,
boolean reverse,
NodePointer startWith)
Create a new DOMNodeIterator. |
Method Summary | |
---|---|
NodePointer |
getNodePointer()
Get the NodePointer at the current position. |
int |
getPosition()
Get the current iterator position. |
private boolean |
next()
Set the next position. |
private boolean |
previous()
Set the previous position. |
boolean |
setPosition(int position)
Set the new current position. |
private boolean |
testChild()
Test child. |
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 org.w3c.dom.Node node
private org.w3c.dom.Node child
private boolean reverse
private int position
Constructor Detail |
---|
public DOMNodeIterator(NodePointer parent, NodeTest nodeTest, boolean reverse, NodePointer startWith)
parent
- parent pointernodeTest
- testreverse
- whether to iterate in reversestartWith
- starting pointerMethod Detail |
---|
public NodePointer getNodePointer()
NodeIterator
getNodePointer
in interface NodeIterator
public int getPosition()
NodeIterator
getPosition
in interface NodeIterator
public boolean setPosition(int position)
NodeIterator
setPosition
in interface NodeIterator
position
- 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 |