org.apache.xpath.axes

Class BasicTestIterator

public abstract class BasicTestIterator extends LocPathIterator

Base for iterators that handle predicates. Does the basic next node logic, so all the derived iterator has to do is get the next node.
Method Summary
DTMIteratorcloneWithReset()
Get a cloned Iterator that is reset to the beginning of the query.
intnextNode()
Returns the next node in the set and advances the position of the iterator in the set.

Method Detail

cloneWithReset

public DTMIterator cloneWithReset()
Get a cloned Iterator that is reset to the beginning of the query.

Returns: A cloned NodeIterator set of the start of the query.

Throws: CloneNotSupportedException

nextNode

public int nextNode()
Returns the next node in the set and advances the position of the iterator in the set. After a NodeIterator is created, the first call to nextNode() returns the first node in the set.

Returns: The next Node in the set being iterated over, or null if there are no more members in that set.

Copyright © 2005 Apache XML Project. All Rights Reserved.