org.apache.xml.dtm.ref
Class DTMDefaultBaseIterators.TypedPrecedingIterator
java.lang.Object
org.apache.xml.dtm.ref.DTMAxisIteratorBase
org.apache.xml.dtm.ref.DTMDefaultBaseIterators.InternalAxisIteratorBase
org.apache.xml.dtm.ref.DTMDefaultBaseIterators.PrecedingIterator
org.apache.xml.dtm.ref.DTMDefaultBaseIterators.TypedPrecedingIterator
- All Implemented Interfaces:
- Cloneable, DTMAxisIterator
- Enclosing class:
- DTMDefaultBaseIterators
- public final class DTMDefaultBaseIterators.TypedPrecedingIterator
- extends DTMDefaultBaseIterators.PrecedingIterator
Iterator that returns preceding nodes of agiven type for a
given node. This includes the node set {root+1, start-1}, but
excludes all ancestors.
Method Summary |
int |
next()
Get the next node in the iteration. |
DTMDefaultBaseIterators.TypedPrecedingIterator
public DTMDefaultBaseIterators.TypedPrecedingIterator(int type)
- Constructor TypedPrecedingIterator
- Parameters:
type
- The extended type ID being requested.
next
public int next()
- Get the next node in the iteration.
- Specified by:
next
in interface DTMAxisIterator
- Overrides:
next
in class DTMDefaultBaseIterators.PrecedingIterator
- Returns:
- The next node handle in the iteration, or END.
Copyright ? 2004 Apache XML Project. All Rights Reserved.