org.apache.html.dom

Class NameNodeListImpl

Implemented Interfaces:
org.w3c.dom.NodeList

public class NameNodeListImpl
extends org.apache.xerces.dom.DeepNodeListImpl
implements org.w3c.dom.NodeList

This class implements the DOM's NodeList behavior for HTMLDocuemnt.getElementsByName().

Version:
$Id: NameNodeListImpl.java,v 1.6 2003/05/08 20:13:09 elena Exp $

Since:
PR-DOM-Level-1-19980818.

See Also:
DeepNodeListImpl

Field Summary

Fields inherited from class org.apache.xerces.dom.DeepNodeListImpl

changes, enableNS, nodes, nsName, rootNode, tagName

Constructor Summary

NameNodeListImpl(org.apache.xerces.dom.NodeImpl rootNode, String tagName)
Constructor.

Method Summary

protected org.w3c.dom.Node
nextMatchingElementAfter(org.w3c.dom.Node current)
Iterative tree-walker.

Methods inherited from class org.apache.xerces.dom.DeepNodeListImpl

getLength, item, nextMatchingElementAfter

Constructor Details

NameNodeListImpl

public NameNodeListImpl(org.apache.xerces.dom.NodeImpl rootNode,
                        String tagName)
Constructor.

Method Details

nextMatchingElementAfter

protected org.w3c.dom.Node nextMatchingElementAfter(org.w3c.dom.Node current)
Iterative tree-walker. When you have a Parent link, there's often no need to resort to recursion. NOTE THAT only Element nodes are matched since we're specifically supporting getElementsByTagName().
Overrides:
nextMatchingElementAfter in interface org.apache.xerces.dom.DeepNodeListImpl


Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.