org.enhydra.xml.xhtml.dom.xerces
Class NameNodeListImpl

java.lang.Object
  |
  +--org.enhydra.apache.xerces.dom.DeepNodeListImpl
        |
        +--org.enhydra.xml.xhtml.dom.xerces.NameNodeListImpl
All Implemented Interfaces:
NodeList

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

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

Since:
PR-DOM-Level-1-19980818.
Version:
$Id: NameNodeListImpl.java,v 1.4 2006/01/21 17:58:39 jkjome Exp $
See Also:
DeepNodeListImpl

Fields inherited from class org.enhydra.apache.xerces.dom.DeepNodeListImpl
changes, enableNS, nodes, nsName, rootNode, tagName
 
Constructor Summary
NameNodeListImpl(org.enhydra.apache.xerces.dom.NodeImpl rootNode, String tagName)
          Constructor.
 
Method Summary
protected  Node nextMatchingElementAfter(Node current)
          Iterative tree-walker.
 
Methods inherited from class org.enhydra.apache.xerces.dom.DeepNodeListImpl
getLength, item
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.NodeList
getLength, item
 

Constructor Detail

NameNodeListImpl

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

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 class org.enhydra.apache.xerces.dom.DeepNodeListImpl


Copyright © 1999-2002 Mark Diekhans, enhydra.org. All Rights reserved.