org.apache.xalan.xsltc.dom
Class AbsoluteIterator
- Cloneable, DTMAxisIterator
public final class AbsoluteIterator
Absolute iterators ignore the node that is passed to setStartNode().
Instead, they always start from the root node. The node passed to
setStartNode() is not totally useless, though. It is needed to obtain the
DOM mask, i.e. the index into the MultiDOM table that corresponds to the
DOM "owning" the node.
The DOM mask is cached, so successive calls to setStartNode() passing
nodes from other DOMs will have no effect (i.e. this iterator cannot
migrate between DOMs).
- Jacek Ambroziak
- Santiago Pericas-Geertsen
cloneIterator , getAxis , getLast , getNodeByPosition , getPosition , getStartNode , includeSelf , isDocOrdered , isReverse , reset , setRestartable |
gotoMark
public void gotoMark()
Restores the current node remembered by setMark().
- gotoMark in interface DTMAxisIterator
next
public int next()
Get the next node in the iteration.
- next in interface DTMAxisIterator
- The next node handle in the iteration, or END.
setMark
public void setMark()
Remembers the current node for the next call to gotoMark().
- setMark in interface DTMAxisIterator
setStartNode
public DTMAxisIterator setStartNode(int node)
Set start to END should 'close' the iterator,
i.e. subsequent call to next() should return END.
- setStartNode in interface DTMAxisIterator
node
- Sets the root of the iteration.
- A DTMAxisIterator set to the start of the iteration.
Copyright © 2006 Apache XML Project. All Rights Reserved.