public final class NamedNodeMapImpl extends Object implements NamedNodeMap
Map
.
The underlaying map must use NamedNodeMapImpl.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 NamedNodeMap
public Node removeNamedItem(String str) throws DOMException
removeNamedItem
in interface NamedNodeMap
DOMException
public Node setNamedItemNS(Node node) throws DOMException
setNamedItemNS
in interface NamedNodeMap
DOMException
public Node setNamedItem(Node node) throws DOMException
setNamedItem
in interface NamedNodeMap
DOMException
public Node getNamedItemNS(String uri, String local)
getNamedItemNS
in interface NamedNodeMap
public Node item(int param)
item
in interface NamedNodeMap
public Node getNamedItem(String str)
getNamedItem
in interface NamedNodeMap
public Node removeNamedItemNS(String str, String str1) throws DOMException
removeNamedItemNS
in interface NamedNodeMap
DOMException