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 NamedNodeMap
public Node item(int index)
item
in interface NamedNodeMap
public int getLength()
getLength
in interface NamedNodeMap
public Node getNamedItemNS(String uri, String localName)
getNamedItemNS
in interface NamedNodeMap
public Node setNamedItem(Node arg) throws DOMException
setNamedItem
in interface NamedNodeMap
DOMException
public Node removeNamedItem(String name) throws DOMException
removeNamedItem
in interface NamedNodeMap
DOMException
public Node setNamedItemNS(Node arg) throws DOMException
setNamedItemNS
in interface NamedNodeMap
DOMException
public Node removeNamedItemNS(String uri, String localName) throws DOMException
removeNamedItemNS
in interface NamedNodeMap
DOMException