fcmodeler.util
Class ChildNodeList

java.lang.Object
  |
  +--fcmodeler.util.ChildNodeList
All Implemented Interfaces:
org.w3c.dom.NodeList

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

A node list providing the child nodes of a certain node that have a certain name.

Since:
JDK1.3
Version:
$Revision: 1.1 $
Author:
Julie Dickerson , Zach Cox

Constructor Summary
ChildNodeList(org.w3c.dom.Node parent, java.lang.String nodeName)
          Creates a new ChildNodeList using the specified node and node name.
 
Method Summary
 int getLength()
          Returns the number of nodes in this list.
 org.w3c.dom.Node item(int index)
          Returns the node at the specified index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildNodeList

public ChildNodeList(org.w3c.dom.Node parent,
                     java.lang.String nodeName)
Creates a new ChildNodeList using the specified node and node name.
Parameters:
parent - the parent node.
nodeName - the node name that child nodes must have.
Method Detail

getLength

public int getLength()
Returns the number of nodes in this list.
Specified by:
getLength in interface org.w3c.dom.NodeList
Returns:
the number of nodes in this list.

item

public org.w3c.dom.Node item(int index)
Returns the node at the specified index.
Specified by:
item in interface org.w3c.dom.NodeList
Parameters:
index - the index of the desired node.
Returns:
the node at the specified index.