FileDocCategorySizeDatePackage
NamedNodeMapImpl.javaAPI DocApache Xerces 3.0.12622Fri Sep 14 20:33:52 BST 2007org.apache.xerces.impl.xs.opti

NamedNodeMapImpl

public class NamedNodeMapImpl extends Object implements NamedNodeMap
xerces.internal
author
Rahul Srivastava, Sun Microsystems Inc.
version
$Id: NamedNodeMapImpl.java 446728 2006-09-15 20:43:46Z mrglavas $

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