class DOMAttributeMap extends Object implements NamedNodeMap
Note that namespaces are treated as attributes.
| Constructor and Description |
|---|
DOMAttributeMap(NodeInfo parent)
Construct an AttributeMap for a given element node
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Get number of attributes and namespaces (DOM NamedNodeMap method).
|
Node |
getNamedItem(String name)
Get named attribute (DOM NamedNodeMap method)
|
Node |
getNamedItemNS(String uri,
String localName)
Get named attribute (DOM NamedNodeMap method)
|
Node |
item(int index)
Get n'th attribute (DOM NamedNodeMap method).
|
Node |
removeNamedItem(String name)
Remove named attribute (DOM NamedNodeMap method: always fails)
|
Node |
removeNamedItemNS(String uri,
String localName)
Remove named attribute (DOM NamedNodeMap method: always fails)
|
Node |
setNamedItem(Node arg)
Set named attribute (DOM NamedNodeMap method: always fails)
|
Node |
setNamedItemNS(Node arg)
Set named attribute (DOM NamedNodeMap method: always fails)
|
public DOMAttributeMap(NodeInfo parent)
public Node getNamedItem(String name)
getNamedItem in interface NamedNodeMappublic Node item(int index)
item in interface NamedNodeMappublic int getLength()
getLength in interface NamedNodeMappublic Node getNamedItemNS(String uri, String localName)
getNamedItemNS in interface NamedNodeMappublic Node setNamedItem(Node arg) throws DOMException
setNamedItem in interface NamedNodeMapDOMExceptionpublic Node removeNamedItem(String name) throws DOMException
removeNamedItem in interface NamedNodeMapDOMExceptionpublic Node setNamedItemNS(Node arg) throws DOMException
setNamedItemNS in interface NamedNodeMapDOMExceptionpublic Node removeNamedItemNS(String uri, String localName) throws DOMException
removeNamedItemNS in interface NamedNodeMapDOMException