|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.sf.jiffie.xpath.DocumentNavigator.NodeIterator
abstract class DocumentNavigator.NodeIterator
A generic iterator over DOM nodes.
Concrete subclasses must implement the getFirstNode(net.sf.jiffie.IHTMLDOMNode) and
getNextNode(net.sf.jiffie.IHTMLDOMNode) methods for a specific iteration strategy.
| Constructor Summary | |
|---|---|
DocumentNavigator.NodeIterator(IHTMLDOMNode contextNode)
Constructor. |
|
| Method Summary | |
|---|---|
protected abstract IHTMLDOMNode |
getFirstNode(IHTMLDOMNode contextNode)
Get the first node for iteration. |
protected abstract IHTMLDOMNode |
getNextNode(IHTMLDOMNode contextNode)
Get the next node for iteration. |
boolean |
hasNext()
|
IHTMLDOMNode |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentNavigator.NodeIterator(IHTMLDOMNode contextNode)
contextNode - The starting node.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<IHTMLDOMNode>public IHTMLDOMNode next()
next in interface java.util.Iterator<IHTMLDOMNode>public void remove()
remove in interface java.util.Iterator<IHTMLDOMNode>protected abstract IHTMLDOMNode getFirstNode(IHTMLDOMNode contextNode)
This method must derive an initial node for iteration from a context node.
contextNode - The starting node.
getNextNode(net.sf.jiffie.IHTMLDOMNode)protected abstract IHTMLDOMNode getNextNode(IHTMLDOMNode contextNode)
This method must locate a following node from the current context node.
contextNode - The current node in the iteration.
getFirstNode(net.sf.jiffie.IHTMLDOMNode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||