org.apache.xml.dtm.ref
Class DTMDefaultBaseIterators.SingletonIterator
- DTMDefaultBaseIterators
- Cloneable, DTMAxisIterator
public class DTMDefaultBaseIterators.SingletonIterator
Class SingletonIterator.
cloneIterator, getAxis, getLast, getNodeByPosition, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse, reset, setRestartable |
SingletonIterator
public SingletonIterator()
Constructor SingletonIterator
SingletonIterator
public SingletonIterator(int node)
Constructor SingletonIterator
node - The node handle to return.
SingletonIterator
public SingletonIterator(int node,
boolean constant) Constructor SingletonIterator
node - the node handle to return.constant - (Not sure what this is yet. -sb)
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.