| java.lang.Object org.apache.xerces.dom.NodeIteratorImpl
NodeIteratorImpl | public class NodeIteratorImpl implements NodeIterator(Code) | | 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.
version: $Id: NodeIteratorImpl.java 447266 2006-09-18 05:57:49Z mrglavas $ |
NodeIteratorImpl | public NodeIteratorImpl(DocumentImpl document, Node root, int whatToShow, NodeFilter nodeFilter, boolean entityReferenceExpansion)(Code) | | Public constructor
|
acceptNode | boolean acceptNode(Node node)(Code) | | The node is accepted if it passes the whatToShow and the filter.
|
detach | public void detach()(Code) | | |
getExpandEntityReferences | public boolean getExpandEntityReferences()(Code) | | Return whether children entity references are included in the iterator.
|
getWhatToShow | public int getWhatToShow()(Code) | | Return the whatToShow value
|
matchNodeOrParent | Node matchNodeOrParent(Node node)(Code) | | Return node, if matches or any parent if matches.
|
nextNode | public Node nextNode()(Code) | | Return the next Node in the Iterator. The node is the next node in
depth-first order which also passes the filter, and whatToShow.
If there is no next node which passes these criteria, then return null.
|
nextNode | Node nextNode(Node node, boolean visitChildren)(Code) | | The method nextNode(Node, boolean) returns the next node
from the actual DOM tree.
The boolean visitChildren determines whether to visit the children.
The result is the nextNode.
|
previousNode | public Node previousNode()(Code) | | Return the previous Node in the Iterator. The node is the next node in
_backwards_ depth-first order which also passes the filter, and whatToShow.
|
previousNode | Node previousNode(Node node)(Code) | | The method previousNode(Node) returns the previous node
from the actual DOM tree.
|
removeNode | public void removeNode(Node node)(Code) | | Fix-up the iterator on a remove. Called by DOM or otherwise,
before an actual DOM remove.
|
|
|