public class NodeIteratorImpl extends Object implements org.w3c.dom.traversal.NodeIterator
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 and Description |
|---|
NodeIteratorImpl(DocumentImpl document,
Node root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter nodeFilter,
boolean entityReferenceExpansion)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
detach() |
boolean |
getExpandEntityReferences()
Return whether children entity references are included in the iterator.
|
org.w3c.dom.traversal.NodeFilter |
getFilter()
Return the filter
|
Node |
getRoot() |
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.
|
public NodeIteratorImpl(DocumentImpl document, Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter nodeFilter, boolean entityReferenceExpansion)
public Node getRoot()
getRoot in interface org.w3c.dom.traversal.NodeIteratorpublic int getWhatToShow()
getWhatToShow in interface org.w3c.dom.traversal.NodeIteratorpublic org.w3c.dom.traversal.NodeFilter getFilter()
getFilter in interface org.w3c.dom.traversal.NodeIteratorpublic boolean getExpandEntityReferences()
getExpandEntityReferences in interface org.w3c.dom.traversal.NodeIteratorpublic Node nextNode()
nextNode in interface org.w3c.dom.traversal.NodeIteratorpublic Node previousNode()
previousNode in interface org.w3c.dom.traversal.NodeIteratorpublic void removeNode(Node node)
public void detach()
detach in interface org.w3c.dom.traversal.NodeIteratorCopyright © 2012 JBoss by Red Hat. All Rights Reserved.