|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.dom.traversal.DOMNodeIterator
public class DOMNodeIterator
This class implements the NodeIterator
interface.
Field Summary | |
---|---|
protected static short |
BACKWARD
The backward state. |
protected AbstractDocument |
document
The document which created the iterator. |
protected boolean |
expandEntityReferences
Whether the children of entity reference nodes are visible to the iterator. |
protected org.w3c.dom.traversal.NodeFilter |
filter
The NodeFilter used to screen nodes. |
protected static short |
FORWARD
The forward state. |
protected static short |
INITIAL
The initial state. |
protected static short |
INVALID
The invalid state. |
protected org.w3c.dom.Node |
referenceNode
The reference node. |
protected org.w3c.dom.Node |
root
The root node. |
protected short |
state
The iterator state. |
protected int |
whatToShow
Which node types are presented via the iterator. |
Constructor Summary | |
---|---|
DOMNodeIterator(AbstractDocument doc,
org.w3c.dom.Node n,
int what,
org.w3c.dom.traversal.NodeFilter nf,
boolean exp)
Creates a new NodeIterator object. |
Method Summary | |
---|---|
void |
detach()
DOM: Implements NodeIterator.detach() . |
boolean |
getExpandEntityReferences()
DOM: Implements NodeIterator.getExpandEntityReferences() . |
org.w3c.dom.traversal.NodeFilter |
getFilter()
DOM: Implements NodeIterator.getFilter() . |
org.w3c.dom.Node |
getRoot()
DOM: Implements NodeIterator.getRoot() . |
int |
getWhatToShow()
DOM: Implements NodeIterator.getWhatToShow() . |
org.w3c.dom.Node |
nextNode()
DOM: Implements NodeIterator.nextNode() . |
void |
nodeToBeRemoved(org.w3c.dom.Node removedNode)
Called by the DOM when a node will be removed from the current document. |
org.w3c.dom.Node |
previousNode()
DOM: Implements NodeIterator.previousNode() . |
protected void |
unfilteredNextNode()
Sets the reference node to the next node, unfiltered. |
protected void |
unfilteredPreviousNode()
Sets the reference node to the previous node, unfiltered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final short INITIAL
protected static final short INVALID
protected static final short FORWARD
protected static final short BACKWARD
protected AbstractDocument document
protected org.w3c.dom.Node root
protected int whatToShow
protected org.w3c.dom.traversal.NodeFilter filter
protected boolean expandEntityReferences
protected short state
protected org.w3c.dom.Node referenceNode
Constructor Detail |
---|
public DOMNodeIterator(AbstractDocument doc, org.w3c.dom.Node n, int what, org.w3c.dom.traversal.NodeFilter nf, boolean exp)
doc
- The document which created the tree walker.n
- The root node.what
- Which node types are presented via the iterator.nf
- The NodeFilter used to screen nodes.exp
- Whether the children of entity reference nodes are visible
to the iterator.Method Detail |
---|
public org.w3c.dom.Node getRoot()
NodeIterator.getRoot()
.
getRoot
in interface org.w3c.dom.traversal.NodeIterator
public int getWhatToShow()
NodeIterator.getWhatToShow()
.
getWhatToShow
in interface org.w3c.dom.traversal.NodeIterator
public org.w3c.dom.traversal.NodeFilter getFilter()
NodeIterator.getFilter()
.
getFilter
in interface org.w3c.dom.traversal.NodeIterator
public boolean getExpandEntityReferences()
NodeIterator.getExpandEntityReferences()
.
getExpandEntityReferences
in interface org.w3c.dom.traversal.NodeIterator
public org.w3c.dom.Node nextNode()
NodeIterator.nextNode()
.
nextNode
in interface org.w3c.dom.traversal.NodeIterator
public org.w3c.dom.Node previousNode()
NodeIterator.previousNode()
.
previousNode
in interface org.w3c.dom.traversal.NodeIterator
public void detach()
NodeIterator.detach()
.
detach
in interface org.w3c.dom.traversal.NodeIterator
public void nodeToBeRemoved(org.w3c.dom.Node removedNode)
protected void unfilteredNextNode()
protected void unfilteredPreviousNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |