FileDocCategorySizeDatePackage
XMLNodeList.javaAPI DocGlassfish v2 API2744Tue May 22 16:54:48 BST 2007oracle.toplink.essentials.platform.xml

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);