com.cafesoft.core.xml.dom
Class StandardNodeList

java.lang.Object
  |
  +--com.cafesoft.core.xml.dom.StandardNodeList
All Implemented Interfaces:
NodeList

public class StandardNodeList
extends Object
implements NodeList

StandardNodeList implements an XML DOM NodeList.


Constructor Summary
StandardNodeList()
          Create a new StandardNodeList.
 
Method Summary
 void add(Node node)
          Add a Node to the NodeList.
 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
 

Constructor Detail

StandardNodeList

public StandardNodeList()
Create a new StandardNodeList.

Method Detail

add

public void add(Node node)
Add a Node to the NodeList.

Parameters:
node - the Node to be added.

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:
index - 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
Returns:
the number of nodes in the list.


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.