org.apache.xml.dtm.ref
public abstract class DTMAxisIteratorBase extends Object implements DTMAxisIterator
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 | getNodeByPosition(int position)
Return the node at the given position.
|
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() |
void | setRestartable(boolean isRestartable) |
Returns: a deep copy of this iterator.
Returns: Axis.CHILD, etc., or -1 if the axis is not known or is of multiple types.
Returns: The number of nodes in this iterator (forward) or 1 (reverse).
Parameters: position The position
Returns: The node at the given position.
Returns: The position of the current node within the set, as defined by XPath. Note that this is one-based, not zero-based.
Returns: The root node of the iteration.
Returns: This default method returns just returns this DTMAxisIterator, after setting the flag. (Returning "this" permits C++-style chaining of method calls into a single expression.)
Returns: true as a default.
Returns: true if this iterator has a reversed axis, else false
Returns: A DTMAxisIterator which has been reset to the start node, which may or may not be the same as this iterator.