public class DomNodeIterator extends Object implements org.w3c.dom.traversal.NodeIterator
NodeIterator
.Constructor and Description |
---|
DomNodeIterator(DomNode root,
int whatToShow,
org.w3c.dom.traversal.NodeFilter filter,
boolean expandEntityReferences)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
detach() |
boolean |
getExpandEntityReferences() |
org.w3c.dom.traversal.NodeFilter |
getFilter() |
DomNode |
getRoot() |
int |
getWhatToShow() |
boolean |
isPointerBeforeReferenceNode()
Returns whether the
NodeIterator is anchored before, or after the node. |
DomNode |
nextNode() |
DomNode |
previousNode() |
public DomNodeIterator(DomNode root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean expandEntityReferences)
root
- The root node at which to begin the NodeIterator
's traversalwhatToShow
- an optional int representing a bitmask created by combining
the constant properties of NodeFilter
expandEntityReferences
- If false, the contents of
EntityReference nodes are not present in the logical view.filter
- an object implementing the NodeFilter
interfacepublic DomNode getRoot()
getRoot
in interface org.w3c.dom.traversal.NodeIterator
public int getWhatToShow()
getWhatToShow
in interface org.w3c.dom.traversal.NodeIterator
public boolean getExpandEntityReferences()
getExpandEntityReferences
in interface org.w3c.dom.traversal.NodeIterator
public org.w3c.dom.traversal.NodeFilter getFilter()
getFilter
in interface org.w3c.dom.traversal.NodeIterator
public boolean isPointerBeforeReferenceNode()
NodeIterator
is anchored before, or after the node.public void detach()
detach
in interface org.w3c.dom.traversal.NodeIterator
public DomNode nextNode()
nextNode
in interface org.w3c.dom.traversal.NodeIterator
public DomNode previousNode()
previousNode
in interface org.w3c.dom.traversal.NodeIterator
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.