org.apache.xml.dtm.ref.sax2dtm

Class SAX2DTM2.TypedAncestorIterator

public final class SAX2DTM2.TypedAncestorIterator extends SAX2DTM2.AncestorIterator

Typed iterator that returns the ancestors of a given node.
Constructor Summary
TypedAncestorIterator(int type)
Constructor TypedAncestorIterator
Method Summary
intgetLast()
Returns the position of the last node within the iteration, as defined by XPath.
intgetNodeByPosition(int position)
Return the node at the given position.
DTMAxisIteratorsetStartNode(int node)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Constructor Detail

TypedAncestorIterator

public TypedAncestorIterator(int type)
Constructor TypedAncestorIterator

Parameters: type The extended type ID being requested.

Method Detail

getLast

public int getLast()
Returns the position of the last node within the iteration, as defined by XPath.

getNodeByPosition

public int getNodeByPosition(int position)
Return the node at the given position.

setStartNode

public DTMAxisIterator setStartNode(int node)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Parameters: node Sets the root of the iteration.

Returns: A DTMAxisIterator set to the start of the iteration.

Copyright B) 2005 Apache XML Project. All Rights Reserved.