FileDocCategorySizeDatePackage
XMLNodeList.javaAPI DocGlassfish v2 API2760Tue May 22 16:54:32 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.xml.parser

XMLNodeList

public class XMLNodeList extends Object implements NodeList
Implementation of the org.w3c.dom.NodeList interface

Fields Summary
private ArrayList
nodes
Constructors Summary
public XMLNodeList()

        nodes = new ArrayList();
    
public XMLNodeList(int size)

        nodes = new ArrayList(size);
    
Methods Summary
public voidadd(org.w3c.dom.Node node)

        nodes.add(node);
    
public voidaddAll(org.w3c.dom.NodeList nodelist)

        int size = nodelist.getLength();
        for (int i = 0; i < size; i++) {
            nodes.add(nodelist.item(i));
        }
    
public intgetLength()

        return nodes.size();
    
public org.w3c.dom.Nodeitem(int i)

        return (Node)nodes.get(i);