org.apache.xalan.xsltc.dom

Class SingletonIterator

Implemented Interfaces:
Cloneable, DTMAxisIterator

public class SingletonIterator
extends DTMAxisIteratorBase

Authors:
Jacek Ambroziak
Santiago Pericas-Geertsen

Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator

END

Constructor Summary

SingletonIterator()
SingletonIterator(int node)
SingletonIterator(int node, boolean constant)

Method Summary

void
gotoMark()
Restores the current node remembered by setMark().
int
next()
Get the next node in the iteration.
DTMAxisIterator
reset()
void
setMark()
Remembers the current node for the next call to gotoMark().
DTMAxisIterator
setStartNode(int node)
Override the value of _node only when this object was constructed using the empty constructor.

Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase

cloneIterator, getAxis, getLast, getNodeByPosition, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse, reset, setRestartable

Constructor Details

SingletonIterator

public SingletonIterator()

SingletonIterator

public SingletonIterator(int node)

SingletonIterator

public SingletonIterator(int node,
                         boolean constant)

Method Details

gotoMark

public void gotoMark()
Restores the current node remembered by setMark().
Specified by:
gotoMark in interface DTMAxisIterator

next

public int next()
Get the next node in the iteration.
Specified by:
next in interface DTMAxisIterator
Returns:
The next node handle in the iteration, or END.

reset

public DTMAxisIterator reset()
Specified by:
reset in interface DTMAxisIterator
Overrides:
reset in interface DTMAxisIteratorBase
Returns:
A DTMAxisIterator which has been reset to the start node, which may or may not be the same as this iterator.

setMark

public void setMark()
Remembers the current node for the next call to gotoMark().
Specified by:
setMark in interface DTMAxisIterator

setStartNode

public DTMAxisIterator setStartNode(int node)
Override the value of _node only when this object was constructed using the empty constructor.
Specified by:
setStartNode in interface DTMAxisIterator

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