com.rsa.certj.xml

Class NodeListImpl

java.lang.Object
  |
  +--com.rsa.certj.xml.NodeListImpl
All Implemented Interfaces:
org.w3c.dom.NodeList

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

This class implements NodeList and adds a new Node object to the NodeList object.

Internal class, do not use

Copyright © RSA Security Inc., 2001. All rights reserved.


Constructor Summary

NodeListImpl()

Generates an empty NodeListImpl object.

NodeListImpl(int size)

Generates a NodeListImpl object and intializes the number of Node objects to store in it to size.

 

Method Summary

 void

add(org.w3c.dom.Node node)

Adds a Node object to this NodeListImpl instance.

 int

getLength()

Returns the number of nodes stored in NodeListImpl instance.

 org.w3c.dom.Node

item(int index)

Returns the item in the position specified by index.

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeListImpl

public NodeListImpl()
Generates an empty NodeListImpl object.

NodeListImpl

public NodeListImpl(int size)
Generates a NodeListImpl object and intializes the number of Node objects to store in it to size.

Parameters

         size  

The number of Node objects to store in this NodeListImpl instance.

Method Detail

add

public void add(org.w3c.dom.Node node)
Adds a Node object to this NodeListImpl instance.

Parameters

         node  

A Node object to add to this NodeListImpl instance.


item

public org.w3c.dom.Node item(int index)
Returns the item in the position specified by index. If index is greater than or equal to the number of nodes in the list, this method returns null.
Specified by:
item in interface org.w3c.dom.NodeList

Parameters

         index  

The position in the collection.

Returns

The node at the position index in the NodeList, or null if index is not valid.

getLength

public int getLength()
Returns the number of nodes stored in NodeListImpl instance.

Specified by:
getLength in interface org.w3c.dom.NodeList

Returns

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


RSA BSAFE ® Cert-J 2.1.1 001-047007-211-001-000