org.eclipse.ercp.xml.dom
Class NodeListImpl

java.lang.Object
  extended by org.eclipse.ercp.xml.dom.NodeListImpl
All Implemented Interfaces:
NodeList

public class NodeListImpl
extends java.lang.Object
implements NodeList


Field Summary
protected  java.util.Vector nodes
           
 
Constructor Summary
NodeListImpl()
          Constructor for NodeListImpl
 
Method Summary
 int getLength()
          The number of nodes in the list.
 Node item(int index)
          Returns the indexth item in the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

protected java.util.Vector nodes
Constructor Detail

NodeListImpl

public NodeListImpl()
Constructor for NodeListImpl

Method Detail

item

public Node item(int index)
Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.

Specified by:
item in interface NodeList
Parameters:
indexIndex - into the collection.
Returns:
The node at the indexth position in the NodeList, or null if that is not a valid index.

getLength

public int getLength()
The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.

Specified by:
getLength in interface NodeList