class DOMAttributeMap
extends java.lang.Object
implements org.w3c.dom.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).
|
org.w3c.dom.Node |
getNamedItem(java.lang.String name)
Get named attribute (DOM NamedNodeMap method)
|
org.w3c.dom.Node |
getNamedItemNS(java.lang.String uri,
java.lang.String localName)
Get named attribute (DOM NamedNodeMap method)
|
org.w3c.dom.Node |
item(int index)
Get n'th attribute (DOM NamedNodeMap method).
|
org.w3c.dom.Node |
removeNamedItem(java.lang.String name)
Remove named attribute (DOM NamedNodeMap method: always fails)
|
org.w3c.dom.Node |
removeNamedItemNS(java.lang.String uri,
java.lang.String localName)
Remove named attribute (DOM NamedNodeMap method: always fails)
|
org.w3c.dom.Node |
setNamedItem(org.w3c.dom.Node arg)
Set named attribute (DOM NamedNodeMap method: always fails)
|
org.w3c.dom.Node |
setNamedItemNS(org.w3c.dom.Node arg)
Set named attribute (DOM NamedNodeMap method: always fails)
|
public DOMAttributeMap(NodeInfo parent)
parent
- the element node owning the attributespublic org.w3c.dom.Node getNamedItem(java.lang.String name)
getNamedItem
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node item(int index)
item
in interface org.w3c.dom.NamedNodeMap
public int getLength()
getLength
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node getNamedItemNS(java.lang.String uri, java.lang.String localName)
getNamedItemNS
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node arg) throws org.w3c.dom.DOMException
setNamedItem
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node removeNamedItem(java.lang.String name) throws org.w3c.dom.DOMException
removeNamedItem
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg) throws org.w3c.dom.DOMException
setNamedItemNS
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node removeNamedItemNS(java.lang.String uri, java.lang.String localName) throws org.w3c.dom.DOMException
removeNamedItemNS
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException