org.apache.xalan.xsltc.dom
Class NodeIteratorBase
java.lang.Object
org.apache.xalan.xsltc.dom.NodeIteratorBase
- Cloneable, NodeIterator
public abstract class NodeIteratorBase
extends java.lang.Object
- Jacek Ambroziak
- Santiago Pericas-Geertsen
- Morten Jorgensen
cloneIterator
public NodeIterator cloneIterator()
Clones and resets this iterator. Note that the cloned iterator is
not restartable. This is because cloning is needed for variable
references, and the context node of the original variable
declaration must be preserved.
- cloneIterator in interface NodeIterator
getLast
public int getLast()
Default implementation of getLast(). Stores current position
and current node, resets the iterator, counts all nodes and
restores iterator to original state.
- getLast in interface NodeIterator
includeSelf
public NodeIterator includeSelf()
Setter for _includeSelf flag.
isReverse
public boolean isReverse()
Indicates if position in this iterator is computed in reverse
document order. Note that nodes are always returned in document
order.
- isReverse in interface NodeIterator
setRestartable
public void setRestartable(boolean isRestartable)
Setter for _isRestartable flag.
- setRestartable in interface NodeIterator
setStartNode
public abstract NodeIterator setStartNode(int node)
Initialize iterator using a node. If iterator is not
restartable, then do nothing. If node is equal to END then
subsequent calls to next() must return END.
- setStartNode in interface NodeIterator
Copyright B) 2004 Apache XML Project. All Rights Reserved.