Class DomNodeIterator

  • All Implemented Interfaces:
    org.w3c.dom.traversal.NodeIterator

    public class DomNodeIterator
    extends java.lang.Object
    implements org.w3c.dom.traversal.NodeIterator
    An implementation of NodeIterator.
    • Constructor Detail

      • DomNodeIterator

        public DomNodeIterator​(DomNode root,
                               int whatToShow,
                               org.w3c.dom.traversal.NodeFilter filter,
                               boolean expandEntityReferences)
        Creates a new instance.
        Parameters:
        root - The root node at which to begin the NodeIterator's traversal
        whatToShow - 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 interface
    • Method Detail

      • getRoot

        public DomNode getRoot()
        Specified by:
        getRoot in interface org.w3c.dom.traversal.NodeIterator
      • getWhatToShow

        public int getWhatToShow()
        Specified by:
        getWhatToShow in interface org.w3c.dom.traversal.NodeIterator
      • getExpandEntityReferences

        public boolean getExpandEntityReferences()
        Specified by:
        getExpandEntityReferences in interface org.w3c.dom.traversal.NodeIterator
      • getFilter

        public org.w3c.dom.traversal.NodeFilter getFilter()
        Specified by:
        getFilter in interface org.w3c.dom.traversal.NodeIterator
      • isPointerBeforeReferenceNode

        public boolean isPointerBeforeReferenceNode()
        Returns whether the NodeIterator is anchored before, or after the node.
        Returns:
        whether it is anchored before or after the node
      • detach

        public void detach()
        Specified by:
        detach in interface org.w3c.dom.traversal.NodeIterator
      • nextNode

        public DomNode nextNode()
        Specified by:
        nextNode in interface org.w3c.dom.traversal.NodeIterator
      • previousNode

        public DomNode previousNode()
        Specified by:
        previousNode in interface org.w3c.dom.traversal.NodeIterator