|
XML for Java EA2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.xml.dom.traversal.NodeIteratorImpl
DefaultNodeIterator implements a NodeIterator, which iterates a DOM tree in the expected depth first way.
The whatToShow and filter functionality is implemented as expected.
This class also has method removeNode to enable iterator "fix-up" on DOM remove. It is expected that the DOM implementation call removeNode right before the actual DOM transformation. If not called by the DOM, the client could call it before doing the removal.
Constructor Summary | |
NodeIteratorImpl(Node root,
int whatToShow,
NodeFilter nodeFilter)
Public constructor |
Method Summary | |
NodeFilter |
getFilter()
Return the filter |
int |
getWhatToShow()
Return the whatToShow value |
Node |
nextNode()
Return the next Node in the Iterator. |
Node |
previousNode()
Return the previous Node in the Iterator. |
void |
removeNode(Node node)
Fix-up the iterator on a remove. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public NodeIteratorImpl(Node root, int whatToShow, NodeFilter nodeFilter)
Method Detail |
public int getWhatToShow()
public NodeFilter getFilter()
public Node nextNode()
public Node previousNode()
public void removeNode(Node node)
|
XML for Java EA2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |