org.jaxen.dom
Class DocumentNavigator.NodeIterator
java.lang.Object
org.jaxen.dom.DocumentNavigator.NodeIterator
- DocumentNavigator
- Iterator
(package private) abstract class DocumentNavigator.NodeIterator
extends java.lang.Object
implements Iterator
protected abstract Node | getFirstNode(Node contextNode) - Get the first node for iteration.
|
protected abstract Node | getNextNode(Node contextNode) - Get the next node for iteration.
|
boolean | hasNext()
|
private boolean | isXPathNode(Node node) - Test whether a DOM node is usable by XPath.
|
Object | next()
|
void | remove()
|
NodeIterator
public NodeIterator(Node contextNode)
Constructor.
contextNode
- the starting node
getFirstNode
protected abstract Node getFirstNode(Node contextNode)
Get the first node for iteration.
This method must derive an initial node for iteration
from a context node.
contextNode
- the starting node
- the first node in the iteration
getNextNode
protected abstract Node getNextNode(Node contextNode)
Get the next node for iteration.
This method must locate a following node from the
current context node.
contextNode
- the current node in the iteration
- the following node in the iteration, or null
if there is none
hasNext
public boolean hasNext()
isXPathNode
private boolean isXPathNode(Node node)
Test whether a DOM node is usable by XPath.
node
- the DOM node to test
- true if the node is usable, false if it should be skipped
remove
public void remove()