org.netbeans.modules.xml.xdm/1 1.19.0 1

org.netbeans.modules.xml.xdm.nodes
Class NamedNodeMapImpl

java.lang.Object
  extended by org.netbeans.modules.xml.xdm.nodes.NamedNodeMapImpl
All Implemented Interfaces:
NamedNodeMap

public final class NamedNodeMapImpl
extends Object
implements NamedNodeMap

Read-only implementation of NamedNodeMap delegating to a Java Map. The underlaying map must use createKey(java.lang.String) as its keys. Also keeps fidelity of the attribute order.


Field Summary
static NamedNodeMap EMPTY
          Read-only empty map.
 
Constructor Summary
NamedNodeMapImpl(List<Attribute> attributes)
          Creates new NamedNodeMapImpl
 
Method Summary
static Object createKey(String qname)
          Create proper key for map entry
static Object createKey(String uri, String local)
          Create proper key for map entry
 int getLength()
           
 Node getNamedItem(String str)
           
 Node getNamedItemNS(String uri, String local)
           
 Node item(int param)
           
 Node removeNamedItem(String str)
           
 Node removeNamedItemNS(String str, String str1)
           
 Node setNamedItem(Node node)
           
 Node setNamedItemNS(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final NamedNodeMap EMPTY
Read-only empty map.

Constructor Detail

NamedNodeMapImpl

public NamedNodeMapImpl(List<Attribute> attributes)
Creates new NamedNodeMapImpl

Parameters:
peer - a map to delegate to. It must not be modified after this contructor call!
Method Detail

getLength

public int getLength()
Specified by:
getLength in interface NamedNodeMap

removeNamedItem

public Node removeNamedItem(String str)
                     throws DOMException
Specified by:
removeNamedItem in interface NamedNodeMap
Throws:
DOMException

setNamedItemNS

public Node setNamedItemNS(Node node)
                    throws DOMException
Specified by:
setNamedItemNS in interface NamedNodeMap
Throws:
DOMException

setNamedItem

public Node setNamedItem(Node node)
                  throws DOMException
Specified by:
setNamedItem in interface NamedNodeMap
Throws:
DOMException

getNamedItemNS

public Node getNamedItemNS(String uri,
                           String local)
Specified by:
getNamedItemNS in interface NamedNodeMap

item

public Node item(int param)
Specified by:
item in interface NamedNodeMap

getNamedItem

public Node getNamedItem(String str)
Specified by:
getNamedItem in interface NamedNodeMap

removeNamedItemNS

public Node removeNamedItemNS(String str,
                              String str1)
                       throws DOMException
Specified by:
removeNamedItemNS in interface NamedNodeMap
Throws:
DOMException

createKey

public static Object createKey(String qname)
Create proper key for map entry


createKey

public static Object createKey(String uri,
                               String local)
Create proper key for map entry


org.netbeans.modules.xml.xdm/1 1.19.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.