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.NodeIterator
public int getWhatToShow()
getWhatToShow
in interface org.w3c.dom.traversal.NodeIterator
public org.w3c.dom.traversal.NodeFilter getFilter()
getFilter
in interface org.w3c.dom.traversal.NodeIterator
public boolean getExpandEntityReferences()
getExpandEntityReferences
in interface org.w3c.dom.traversal.NodeIterator
public Node nextNode()
nextNode
in interface org.w3c.dom.traversal.NodeIterator
public Node previousNode()
previousNode
in interface org.w3c.dom.traversal.NodeIterator
public void removeNode(Node node)
public void detach()
detach
in interface org.w3c.dom.traversal.NodeIterator
Copyright © 2019 JBoss by Red Hat. All rights reserved.