org.apache.xml.dtm.ref.sax2dtm
Class SAX2DTM2.TypedAncestorIterator
- SAX2DTM2
- Cloneable, DTMAxisIterator
public final class SAX2DTM2.TypedAncestorIterator
Typed iterator that returns the ancestors of a given node.
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.
|
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 |
TypedAncestorIterator
public TypedAncestorIterator(int type)
Constructor TypedAncestorIterator
type
- The extended type ID being requested.
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
- setStartNode in interface SAX2DTM2.AncestorIterator
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.