org.apache.xml.dtm.ref.sax2dtm

Class SAX2DTM2.TypedSingletonIterator

public final class SAX2DTM2.TypedSingletonIterator extends SingletonIterator

Iterator that returns a given node only if it is of a given type.
Constructor Summary
TypedSingletonIterator(int nodeType)
Constructor TypedSingletonIterator
Method Summary
intnext()
Get the next node in the iteration.

Constructor Detail

TypedSingletonIterator

public TypedSingletonIterator(int nodeType)
Constructor TypedSingletonIterator

Parameters: nodeType The extended type ID being requested.

Method Detail

next

public int next()
Get the next node in the iteration.

Returns: The next node handle in the iteration, or END.

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