org.apache.xalan.xsltc

Interface NodeIterator

public interface NodeIterator extends Cloneable

Author: Jacek Ambroziak Santiago Pericas-Geertsen

Field Summary
static intEND
Method Summary
NodeIteratorcloneIterator()
Returns a deep copy of this iterator.
intgetLast()
Returns the number of elements in this iterator.
intgetPosition()
Returns the position of the current node in the set.
voidgotoMark()
Restores the current node remembered by setMark().
booleanisReverse()
True if this iterator has a reversed axis.
intnext()
Callers should not call next() after it returns END.
NodeIteratorreset()
Resets the iterator to the last start node.
voidsetMark()
Remembers the current node for the next call to gotoMark().
voidsetRestartable(boolean isRestartable)
Prevents or allows iterator restarts.
NodeIteratorsetStartNode(int node)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Field Detail

END

public static final int END

Method Detail

cloneIterator

public NodeIterator cloneIterator()
Returns a deep copy of this iterator.

getLast

public int getLast()
Returns the number of elements in this iterator.

getPosition

public int getPosition()
Returns the position of the current node in the set.

gotoMark

public void gotoMark()
Restores the current node remembered by setMark().

isReverse

public boolean isReverse()
True if this iterator has a reversed axis.

next

public int next()
Callers should not call next() after it returns END.

reset

public NodeIterator reset()
Resets the iterator to the last start node.

setMark

public void setMark()
Remembers the current node for the next call to gotoMark().

setRestartable

public void setRestartable(boolean isRestartable)
Prevents or allows iterator restarts.

setStartNode

public NodeIterator setStartNode(int node)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
Copyright B) 2006 Apache XML Project. All Rights Reserved.