FileDocCategorySizeDatePackage
NamedNodeMapImpl.javaAPI DocAndroid 1.5 API2451Wed May 06 22:42:46 BST 2009com.android.mms.dom

NamedNodeMapImpl

public class NamedNodeMapImpl extends Object implements NamedNodeMap

Fields Summary
private Vector
mNodes
Constructors Summary
Methods Summary
public intgetLength()


       
        return mNodes.size();
    
public org.w3c.dom.NodegetNamedItem(java.lang.String name)

        Node node = null;
        for (int i = 0; i < mNodes.size(); i++) {
            if (name.equals(mNodes.elementAt(i).getNodeName())) {
                node = mNodes.elementAt(i);
                break;
            }
        }
        return node;
    
public org.w3c.dom.NodegetNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)

        // TODO Auto-generated method stub
        return null;
    
public org.w3c.dom.Nodeitem(int index)

        if (index < mNodes.size()) {
            return mNodes.elementAt(index);
        }
        return null;
    
public org.w3c.dom.NoderemoveNamedItem(java.lang.String name)

        Node node = getNamedItem(name);
        if (node == null) {
            throw new DOMException(DOMException.NOT_FOUND_ERR, "Not found");
        } else {
            mNodes.remove(node);
        }
        return node;
    
public org.w3c.dom.NoderemoveNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)

        // TODO Auto-generated method stub
        return null;
    
public org.w3c.dom.NodesetNamedItem(org.w3c.dom.Node arg)

        Node existing = getNamedItem(arg.getNodeName());
        if (existing != null) {
            mNodes.remove(existing);
        }
        mNodes.add(arg);
        return existing;
    
public org.w3c.dom.NodesetNamedItemNS(org.w3c.dom.Node arg)

        // TODO Auto-generated method stub
        return null;