FileDocCategorySizeDatePackage
NodeListImpl.javaAPI DocApache Axis 1.41924Sat Apr 22 18:57:26 BST 2006org.apache.axis.message

NodeListImpl

public class NodeListImpl extends Object implements NodeList
A simple implementation for Nodelist Support in AXIS
author
Heejune Ahn (cityboy@tmax.co.kr)

Fields Summary
List
mNodes
public static final NodeList
EMPTY_NODELIST
Constructors Summary
NodeListImpl()
Constructor and Setter is intensionally made package access only.


                    
     
        mNodes = new ArrayList();
    
NodeListImpl(List nodes)

        this();
        mNodes.addAll(nodes);
    
Methods Summary
voidaddNode(org.w3c.dom.Node node)

        mNodes.add(node);
    
voidaddNodeList(org.w3c.dom.NodeList nodes)

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

        return mNodes.size();
    
public org.w3c.dom.Nodeitem(int index)
Interface Implemented

param
index
return

        if (mNodes != null && mNodes.size() > index) {
            return (Node) mNodes.get(index);
        } else {
            return null;
        }