org.apache.html.dom

Class NameNodeListImpl

Implemented Interfaces:
NodeList

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

This class implements the DOM's NodeList behavior for HTMLDocuemnt.getElementsByName().
Version:
$Id: NameNodeListImpl.java 447255 2006-09-18 05:36:42Z mrglavas $
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 Node
nextMatchingElementAfter(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 Node nextMatchingElementAfter(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-2006 The Apache Software Foundation. All Rights Reserved.