java.lang.Cloneable, DTMAxisIteratorpublic class SingletonIterator extends DTMAxisIteratorBase
END| Constructor | Description |
|---|---|
SingletonIterator() |
|
SingletonIterator(int node) |
|
SingletonIterator(int node,
boolean constant) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
gotoMark() |
Restores the current node remembered by setMark().
|
int |
next() |
Get the next node in the iteration.
|
DTMAxisIterator |
reset() |
Resets the iterator to the last start node.
|
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.
|
cloneIterator, getAxis, getLast, getNodeByPosition, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse, setRestartablepublic SingletonIterator()
public SingletonIterator(int node)
public SingletonIterator(int node,
boolean constant)
public DTMAxisIterator setStartNode(int node)
node - Sets the root of the iteration.public DTMAxisIterator reset()
DTMAxisIteratorreset in interface DTMAxisIteratorreset in class DTMAxisIteratorBasepublic int next()
DTMAxisIteratorpublic void setMark()
DTMAxisIteratorpublic void gotoMark()
DTMAxisIteratorCopyright © 2014 Apache XML Project. All Rights Reserved.