FileDocCategorySizeDatePackage
NamedNodeMapImpl.javaAPI DocJava SE 6 API2386Tue Jun 10 00:22:46 BST 2008com.sun.org.apache.xerces.internal.impl.xs.opti

NamedNodeMapImpl

public class NamedNodeMapImpl extends Object implements NamedNodeMap
xerces.internal
author
Rahul Srivastava, Sun Microsystems Inc.
version
$Id: NamedNodeMapImpl.java,v 1.3 2005/09/26 13:02:41 sunithareddy Exp $

Fields Summary
Attr[]
attrs
Constructors Summary
public NamedNodeMapImpl(Attr[] attrs)

		this.attrs = attrs;
	
Methods Summary
public intgetLength()

		return attrs.length;
	
public org.w3c.dom.NodegetNamedItem(java.lang.String name)

		for (int i=0; i<attrs.length; i++) {
    			if (attrs[i].getName().equals(name)) {
    				return attrs[i];
    			}
    		}
    		return null;
	
public org.w3c.dom.NodegetNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)

		for (int i=0; i<attrs.length; i++) {
    			if (attrs[i].getName().equals(localName) && attrs[i].getNamespaceURI().equals(namespaceURI)) {
    				return attrs[i];
    			}
    		}
    		return null;
	
public org.w3c.dom.Nodeitem(int index)

		if (index < 0 && index > getLength()) {
			return null;
		}
		return attrs[index];
	
public org.w3c.dom.NoderemoveNamedItem(java.lang.String name)

		throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
	
public org.w3c.dom.NoderemoveNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)

		throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
	
public org.w3c.dom.NodesetNamedItem(org.w3c.dom.Node arg)

		throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
	
public org.w3c.dom.NodesetNamedItemNS(org.w3c.dom.Node arg)

		throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");