Class DocumentNavigator.NodeIterator
java.lang.Object
org.jaxen.dom.DocumentNavigator.NodeIterator
- All Implemented Interfaces:
Iterator
- Enclosing class:
DocumentNavigator
A generic iterator over DOM nodes.
Concrete subclasses must implement the getFirstNode(Node)
and getNextNode(Node) methods for a specific iteration
strategy.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract NodegetFirstNode(Node contextNode) Get the first node for iteration.protected abstract NodegetNextNode(Node contextNode) Get the next node for iteration.booleanhasNext()private booleanisXPathNode(Node node) Test whether a DOM node is usable by XPath.next()voidremove()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
node
-
-
Constructor Details
-
NodeIterator
-
-
Method Details
-
hasNext
-
next
-
remove
-
getFirstNode
-
getNextNode
-
isXPathNode
Test whether a DOM node is usable by XPath.- Parameters:
node- the DOM node to test- Returns:
- true if the node is usable, false if it should be skipped
-