java.lang.Cloneable
, DTMAxisIterator
public 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, 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 ? 2014 Apache XML Project. All Rights Reserved.