org.apache.xml.dtm.ref.sax2dtm
Class SAX2DTM2.PrecedingIterator
- SAX2DTM2
- Cloneable, DTMAxisIterator
public class SAX2DTM2.PrecedingIterator
Iterator that returns preceding nodes of a given node.
This includes the node set {root+1, start-1}, but excludes
all ancestors, attributes, and namespace nodes.
DTMAxisIterator | cloneIterator() - Returns a deep copy of this iterator.
|
void | gotoMark() - Restores the current node remembered by setMark().
|
boolean | isReverse() - True if this iterator has a reversed axis.
|
int | next() - Get the next node in the iteration.
|
DTMAxisIterator | reset() - Resets the iterator to the last start node.
|
void | setMark() - Remembers the current node for the next call to gotoMark().
|
DTMAxisIterator | setStartNode(int node) - Set start to END should 'close' the iterator,
i.e. subsequent call to next() should return END.
|
cloneIterator , getAxis , getLast , getNodeByPosition , getPosition , getStartNode , includeSelf , isDocOrdered , isReverse , reset , setRestartable |
next
public int next()
Get the next node in the iteration.
- next in interface DTMAxisIterator
- The next node handle in the iteration, or END.
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 B) 2004 Apache XML Project. All Rights Reserved.