org.apache.xpath.axes
public interface ContextNodeList
UNKNOWN: advanced
Method Summary | |
---|---|
Object | clone()
Get a clone of this iterator. |
NodeIterator | cloneWithReset()
Get a cloned Iterator that is reset to the start of the iteration.
|
Node | getCurrentNode()
Get the current node.
|
int | getCurrentPos()
Get the current position, which is one less than
the next nextNode() call will retrieve. i.e. if
you call getCurrentPos() and the return is 0, the next
fetch will take place at index 1.
|
int | getLast()
Get the index of the last node in this list.
|
boolean | isFresh()
Tells if this NodeSetDTM is "fresh", in other words, if
the first nextNode() that is called will return the
first node in the set.
|
void | reset()
Reset the iterator. |
void | runTo(int index)
If an index is requested, NodeSetDTM will call this method
to run the iterator to the index. |
void | setCurrentPos(int i)
Set the current position in the node set. |
void | setLast(int last)
Set the index of the last node in this list.
|
void | setShouldCacheNodes(boolean b)
If setShouldCacheNodes(true) is called, then nodes will
be cached. |
int | size()
Get the length of the list.
|
Returns: A clone of this object.
Throws: CloneNotSupportedException
Returns: A clone of this iteration that has been reset.
Throws: CloneNotSupportedException
Returns: The current node, or null.
Returns: The position of the current node in the current node list.
Returns: the index of the last node in this list.
Returns: true if the iteration of this list has not yet begun.
Parameters: index The index to run to, or -1 if the iterator should be run to the end.
Parameters: i Must be a valid index.
Parameters: last the index of the last node in this list.
Parameters: b true if the nodes should be cached.
Returns: The number of nodes in this node list.