FileDocCategorySizeDatePackage
NodeListImpl.javaAPI DocAndroid 1.5 API1757Wed May 06 22:41:06 BST 2009org.apache.harmony.xml.dom

NodeListImpl

public class NodeListImpl extends Object implements NodeList
Provides a straightforward implementation of the corresponding W3C DOM interface. The class is used internally only, thus only notable members that are not in the original interface are documented (the W3C docs are quite extensive). Hope that's ok.

Some of the fields may have package visibility, so other classes belonging to the DOM implementation can easily access them while maintaining the DOM tree structure.

Fields Summary
private List
children
Constructors Summary
NodeListImpl()

        children = new ArrayList<NodeImpl>();
    
NodeListImpl(List list)

        children = list;
    
Methods Summary
voidadd(NodeImpl node)

        children.add(node);
    
public intgetLength()

        return children.size();
    
public org.w3c.dom.Nodeitem(int index)

        if (index >= children.size()) {
            return null;
        } else {
            return children.get(index);
        }