org.w3c.tidy
Class DOMNodeListByTagNameImpl

java.lang.Object
  |
  +--org.w3c.tidy.DOMNodeListByTagNameImpl
All Implemented Interfaces:
NodeList

public class DOMNodeListByTagNameImpl
extends java.lang.Object
implements NodeList

The items in the NodeList are accessible via an integral index, starting from 0.


Constructor Summary
protected DOMNodeListByTagNameImpl(Node first, java.lang.String tagName)
           
 
Method Summary
 int getLength()
          The number of nodes in the list.
 Node item(int index)
          Returns the indexth item in the collection.
protected  void preTraverse(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMNodeListByTagNameImpl

protected DOMNodeListByTagNameImpl(Node first,
                                   java.lang.String tagName)
Method Detail

item

public Node item(int index)
Description copied from interface: NodeList
Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.
Specified by:
item in interface NodeList
See Also:
NodeList.item(int)

getLength

public int getLength()
Description copied from interface: NodeList
The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
Specified by:
getLength in interface NodeList
See Also:
NodeList.getLength()

preTraverse

protected void preTraverse(Node node)