Class DOMNodeIterator

java.lang.Object
org.apache.batik.dom.traversal.DOMNodeIterator
All Implemented Interfaces:
NodeIterator

public class DOMNodeIterator extends Object implements NodeIterator
This class implements the NodeIterator interface.
Version:
$Id: DOMNodeIterator.java 1733416 2016-03-03 07:07:13Z gadams $
  • Field Details

    • INITIAL

      protected static final short INITIAL
      The initial state.
      See Also:
    • INVALID

      protected static final short INVALID
      The invalid state.
      See Also:
    • FORWARD

      protected static final short FORWARD
      The forward state.
      See Also:
    • BACKWARD

      protected static final short BACKWARD
      The backward state.
      See Also:
    • document

      protected AbstractDocument document
      The document which created the iterator.
    • root

      protected Node root
      The root node.
    • whatToShow

      protected int whatToShow
      Which node types are presented via the iterator.
    • filter

      protected NodeFilter filter
      The NodeFilter used to screen nodes.
    • expandEntityReferences

      protected boolean expandEntityReferences
      Whether the children of entity reference nodes are visible to the iterator.
    • state

      protected short state
      The iterator state.
    • referenceNode

      protected Node referenceNode
      The reference node.
  • Constructor Details

    • DOMNodeIterator

      public DOMNodeIterator(AbstractDocument doc, Node n, int what, NodeFilter nf, boolean exp)
      Creates a new NodeIterator object.
      Parameters:
      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 Details