org.apache.axis2.om.impl.dom
Class NodeListImpl

java.lang.Object
  extended byorg.apache.axis2.om.impl.dom.NodeListImpl
All Implemented Interfaces:
NodeList

public class NodeListImpl
extends Object
implements NodeList

Implementation of org.w3c.dom.NodeList


Field Summary
protected  boolean enableNS
           
protected  Vector nodes
           
protected  String nsName
           
protected  NodeImpl rootNode
           
protected  String tagName
           
 
Constructor Summary
NodeListImpl(NodeImpl rootNode, String tagName)
          Constructor.
NodeListImpl(NodeImpl rootNode, String namespaceURI, String localName)
          Constructor for Namespace support.
 
Method Summary
 int getLength()
          Returns the number of nodes.
 Node item(int index)
          Returns the node at the given index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rootNode

protected NodeImpl rootNode

tagName

protected String tagName

nodes

protected Vector nodes

nsName

protected String nsName

enableNS

protected boolean enableNS
Constructor Detail

NodeListImpl

public NodeListImpl(NodeImpl rootNode,
                    String tagName)
Constructor.


NodeListImpl

public NodeListImpl(NodeImpl rootNode,
                    String namespaceURI,
                    String localName)
Constructor for Namespace support.

Method Detail

getLength

public int getLength()
Returns the number of nodes.

Specified by:
getLength in interface NodeList
See Also:
NodeList.getLength()

item

public Node item(int index)
Returns the node at the given index. Returns null if the index is invalid.

Specified by:
item in interface NodeList
See Also:
NodeList.item(int)