|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.dtm.ref.DTMAxisIteratorBase
This class serves as a default base for implementations of DTMAxisIterators.
Field Summary | |
protected boolean |
_includeSelf
True if the start node should be considered part of the iteration. |
protected boolean |
_isRestartable
True if this iteration can be restarted. |
private int |
_last
The position of the last node within the iteration, as defined by XPath. |
protected int |
_markedNode
The position of the marked node within the iteration; a saved itaration state that we may want to come back to. |
private int |
_position
The position of the current node within the iteration, as defined by XPath. |
protected int |
_startNode
The handle to the start, or root, of the iteration. |
Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator |
END |
Constructor Summary | |
DTMAxisIteratorBase()
|
Method Summary | |
DTMAxisIterator |
cloneIterator()
Returns a deep copy of this iterator. |
int |
getAxis()
Returns the axis being iterated, if it is known. |
int |
getLast()
Returns the position of the last node within the iteration, as defined by XPath. |
int |
getPosition()
|
int |
getStartNode()
Get start to END should 'close' the iterator, i.e. subsequent call to next() should return END. |
DTMAxisIterator |
includeSelf()
Set the flag to include the start node in the iteration. |
boolean |
isDocOrdered()
Returns true if all the nodes in the iteration well be returned in document order. |
boolean |
isReverse()
|
DTMAxisIterator |
reset()
Resets the iterator to the last start node. |
protected DTMAxisIterator |
resetPosition()
Reset the position to zero. |
protected int |
returnNode(int node)
Do any final cleanup that is required before returning the node that was passed in, and then return it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.xml.dtm.DTMAxisIterator |
gotoMark, next, setMark, setStartNode |
Field Detail |
private int _last
private int _position
protected int _markedNode
protected int _startNode
protected boolean _includeSelf
protected boolean _isRestartable
Constructor Detail |
public DTMAxisIteratorBase()
Method Detail |
public int getStartNode()
getStartNode
in interface DTMAxisIterator
public DTMAxisIterator reset()
DTMAxisIterator
reset
in interface DTMAxisIterator
public DTMAxisIterator includeSelf()
public int getLast()
getLast
in interface DTMAxisIterator
public int getPosition()
getPosition
in interface DTMAxisIterator
public boolean isReverse()
isReverse
in interface DTMAxisIterator
public DTMAxisIterator cloneIterator()
cloneIterator
in interface DTMAxisIterator
protected final int returnNode(int node)
return returnNode(node);
%REVIEW% If we're calling it purely for side effects, should we really
be bothering with a return value? Something like
accept(node); return node;
node
- Node handle which iteration is about to yield.
protected final DTMAxisIterator resetPosition()
public boolean isDocOrdered()
public int getAxis()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |