|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.apache.xerces.dom.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(DocumentImpl document,
Node root,
int whatToShow,
NodeFilter nodeFilter,
boolean entityReferenceExpansion)
Public constructor |
Method Summary | |
(package private) boolean |
acceptNode(Node node)
The node is accepted if it passes the whatToShow and the filter. |
void |
detach()
|
boolean |
getExpandEntityReferences()
Return whether children entity references are included in the iterator. |
NodeFilter |
getFilter()
Return the filter |
Node |
getRoot()
|
int |
getWhatToShow()
Return the whatToShow value |
(package private) Node |
matchNodeOrParent(Node node)
Return node, if matches or any parent if matches. |
Node |
nextNode()
Return the next Node in the Iterator. |
(package private) Node |
nextNode(Node node,
boolean visitChildren)
The method nextNode(Node, boolean) returns the next node from the actual DOM tree. |
Node |
previousNode()
Return the previous Node in the Iterator. |
(package private) Node |
previousNode(Node node)
The method previousNode(Node) returns the previous node from the actual DOM tree. |
void |
removeNode(Node node)
Fix-up the iterator on a remove. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public NodeIteratorImpl(DocumentImpl document, Node root, int whatToShow, NodeFilter nodeFilter, boolean entityReferenceExpansion)
Method Detail |
public Node getRoot()
getRoot
in interface NodeIterator
public int getWhatToShow()
getWhatToShow
in interface NodeIterator
public NodeFilter getFilter()
getFilter
in interface NodeIterator
public boolean getExpandEntityReferences()
getExpandEntityReferences
in interface NodeIterator
public Node nextNode()
nextNode
in interface NodeIterator
public Node previousNode()
previousNode
in interface NodeIterator
boolean acceptNode(Node node)
Node matchNodeOrParent(Node node)
Node nextNode(Node node, boolean visitChildren)
Node previousNode(Node node)
public void removeNode(Node node)
public void detach()
detach
in interface NodeIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |