APIdia Launch Partner
Top Fields Methods
com.sun.org.apache.xalan.internal.xsltc

public Interface NodeIterator

extends Cloneable
Known Direct Implementers
com.sun.org.apache.xalan.internal.xsltc.dom.NodeIteratorBase
Imports
com.sun.org.apache.xml.internal.dtm.DTM

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Modifier and TypeField and Description
public static final int

Method Summary

Modifier and TypeMethod and Description
public NodeIterator
cloneIterator()

Returns a deep copy of this iterator.

public int
getLast()

Returns the number of elements in this iterator.

public int
getPosition()

Returns the position of the current node in the set.

public void
gotoMark()

Restores the current node remembered by setMark().

public boolean
isReverse()

True if this iterator has a reversed axis.

public int
next()

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

public NodeIterator
reset()

Resets the iterator to the last start node.

public void
setMark()

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

public void
setRestartable(boolean isRestartable)

Prevents or allows iterator restarts.

public NodeIterator
setStartNode(int node)

Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Field Detail

ENDback to summary
public static final int END

Method Detail

cloneIteratorback to summary
public NodeIterator cloneIterator()

Returns a deep copy of this iterator.

getLastback to summary
public int getLast()

Returns the number of elements in this iterator.

getPositionback to summary
public int getPosition()

Returns the position of the current node in the set.

gotoMarkback to summary
public void gotoMark()

Restores the current node remembered by setMark().

isReverseback to summary
public boolean isReverse()

True if this iterator has a reversed axis.

nextback to summary
public int next()

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

resetback to summary
public NodeIterator reset()

Resets the iterator to the last start node.

setMarkback to summary
public void setMark()

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

setRestartableback to summary
public void setRestartable(boolean isRestartable)

Prevents or allows iterator restarts.

setStartNodeback to summary
public NodeIterator setStartNode(int node)

Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.