com.japisoft.fastparser.dom
Class NodeListImpl

java.lang.Object
  |
  +--com.japisoft.fastparser.dom.NodeListImpl
All Implemented Interfaces:
org.w3c.dom.NodeList

public class NodeListImpl
extends java.lang.Object
implements org.w3c.dom.NodeList

Implementation for NodeList

Author:
(c) 2002-2003 JAPISOFT

Constructor Summary
NodeListImpl(SimpleNode n)
           
NodeListImpl(SimpleNode n, java.lang.String filter)
           
 
Method Summary
 int getLength()
           
 org.w3c.dom.Node item(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeListImpl

public NodeListImpl(SimpleNode n)
Parameters:
n - reference node

NodeListImpl

public NodeListImpl(SimpleNode n,
                    java.lang.String filter)
Parameters:
n - reference node
filter - tag name to find
Method Detail

item

public org.w3c.dom.Node item(int index)
Specified by:
item in interface org.w3c.dom.NodeList
Returns:
a node at index or null

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.NodeList
Returns:
the total number of node