org.w3c.tidy

Class DOMNodeListByTagNameImpl

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 $)
Authors:
Dave Raggett dsr@w3.org
Andy Quick ac.quick@sympatico.ca (translation to Java)
Fabrizio Giustina

Constructor Summary

DOMNodeListByTagNameImpl(Node first, String tagName)
Instantiates a new DOMNodeListByTagName.

Method Summary

int
getLength()
org.w3c.dom.Node
item(int index)
protected void
preTraverse(Node node)
Traverse the node list.

Constructor Details

DOMNodeListByTagNameImpl

protected DOMNodeListByTagNameImpl(Node first,
                                   String tagName)
Instantiates a new DOMNodeListByTagName.
Parameters:
first - first node.
tagName - tag name

Method Details

getLength

public int getLength()
See Also:
org.w3c.dom.NodeList.getLength

item

public org.w3c.dom.Node item(int index)
See Also:
org.w3c.dom.NodeList.item

preTraverse

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