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

java.lang.Object
  extended by org.apache.axiom.om.impl.dom.NodeListImpl
All Implemented Interfaces:
org.w3c.dom.NodeList

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

Implementation of org.w3c.dom.NodeList


Field Summary
protected  boolean enableNS
           
protected  java.util.Vector nodes
           
protected  java.lang.String nsName
           
protected  NodeImpl rootNode
           
protected  java.lang.String tagName
           
 
Constructor Summary
NodeListImpl(NodeImpl rootNode, java.lang.String tagName)
          Constructor.
NodeListImpl(NodeImpl rootNode, java.lang.String namespaceURI, java.lang.String localName)
          Constructor for Namespace support.
 
Method Summary
 int getLength()
          Returns the number of nodes.
 org.w3c.dom.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 java.lang.String tagName

nodes

protected java.util.Vector nodes

nsName

protected java.lang.String nsName

enableNS

protected boolean enableNS
Constructor Detail

NodeListImpl

public NodeListImpl(NodeImpl rootNode,
                    java.lang.String tagName)
Constructor.


NodeListImpl

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

Method Detail

getLength

public int getLength()
Returns the number of nodes.

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

item

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

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