public class SingletonIterator extends DTMAxisIteratorBase
_includeSelf, _isRestartable, _last, _markedNode, _position, _startNode
END
Constructor and Description |
---|
SingletonIterator() |
SingletonIterator(int node) |
SingletonIterator(int node,
boolean constant) |
Modifier and Type | Method and 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, resetPosition, returnNode, setRestartable
public 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()
DTMAxisIterator
reset
in interface DTMAxisIterator
reset
in class DTMAxisIteratorBase
public int next()
DTMAxisIterator
public void setMark()
DTMAxisIterator
public void gotoMark()
DTMAxisIterator
Copyright © 2018 JBoss by Red Hat. All rights reserved.