Package org.w3c.tidy

Class DOMNodeListByTagNameImpl

  • All Implemented Interfaces:
    org.w3c.dom.NodeList

    public class DOMNodeListByTagNameImpl
    extends java.lang.Object
    implements org.w3c.dom.NodeList
    DOMNodeListByTagNameImpl. The items in the NodeList are accessible via an integral index, starting from 0.
    Version:
    $Revision: 633 $ ($Author: fgiust $)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int currIndex
      Current index.
      private Node currNode
      Current node.
      private Node first
      First node.
      private int maxIndex
      Max index (number of nodes).
      private java.lang.String tagName
      Tag name.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DOMNodeListByTagNameImpl​(Node first, java.lang.String tagName)
      Instantiates a new DOMNodeListByTagName.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLength()  
      org.w3c.dom.Node item​(int index)  
      protected void preTraverse​(Node node)
      Traverse the node list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • first

        private Node first
        First node.
      • tagName

        private java.lang.String tagName
        Tag name.
      • currIndex

        private int currIndex
        Current index.
      • maxIndex

        private int maxIndex
        Max index (number of nodes).
      • currNode

        private Node currNode
        Current node.
    • Constructor Detail

      • DOMNodeListByTagNameImpl

        protected DOMNodeListByTagNameImpl​(Node first,
                                           java.lang.String tagName)
        Instantiates a new DOMNodeListByTagName.
        Parameters:
        first - first node.
        tagName - tag name
    • Method Detail

      • item

        public org.w3c.dom.Node item​(int index)
        Specified by:
        item in interface org.w3c.dom.NodeList
        See Also:
        NodeList.item(int)
      • getLength

        public int getLength()
        Specified by:
        getLength in interface org.w3c.dom.NodeList
        See Also:
        NodeList.getLength()
      • preTraverse

        protected void preTraverse​(Node node)
        Traverse the node list.
        Parameters:
        node - Node