public final class NamedNodeMapImpl extends Object implements NamedNodeMap
Map.
The underlaying map must use createKey(java.lang.String) as its keys. Also keeps
fidelity of the attribute order.| Modifier and Type | Field and Description |
|---|---|
static NamedNodeMap |
EMPTY
Read-only empty map.
|
| Constructor and Description |
|---|
NamedNodeMapImpl(List<Attribute> attributes)
Creates new NamedNodeMapImpl
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final NamedNodeMap EMPTY
public int getLength()
getLength in interface NamedNodeMappublic Node removeNamedItem(String str) throws DOMException
removeNamedItem in interface NamedNodeMapDOMExceptionpublic Node setNamedItemNS(Node node) throws DOMException
setNamedItemNS in interface NamedNodeMapDOMExceptionpublic Node setNamedItem(Node node) throws DOMException
setNamedItem in interface NamedNodeMapDOMExceptionpublic Node getNamedItemNS(String uri, String local)
getNamedItemNS in interface NamedNodeMappublic Node item(int param)
item in interface NamedNodeMappublic Node getNamedItem(String str)
getNamedItem in interface NamedNodeMappublic Node removeNamedItemNS(String str, String str1) throws DOMException
removeNamedItemNS in interface NamedNodeMapDOMExceptionBuilt on May 16 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.