|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xerces.dom.NamedNodeMapImpl
org.apache.xerces.dom.AttributeMap
public class AttributeMap
AttributeMap inherits from NamedNodeMapImpl and extends it to deal with the specifics of storing attributes. These are:
This class doesn't directly support mutation events, however, it notifies the document when mutations are performed so that the document class do so.
| Method Summary | |
|---|---|
NamedNodeMapImpl |
cloneMap(NodeImpl ownerNode)
Cloning a NamedNodeMap is a DEEP OPERATION; it always clones all the nodes contained in the map. |
Node |
removeNamedItem(java.lang.String name)
Removes a node specified by name. |
Node |
removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String name)
Introduced in DOM Level 2. |
Node |
setNamedItem(Node arg)
Adds an attribute using its nodeName attribute. |
Node |
setNamedItemNS(Node arg)
Adds an attribute using its namespaceURI and localName. |
| Methods inherited from class org.apache.xerces.dom.NamedNodeMapImpl |
|---|
getLength, getNamedItem, getNamedItemNS, item, removeAll |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Node setNamedItem(Node arg)
throws DOMException
setNamedItem in interface NamedNodeMapsetNamedItem in class NamedNodeMapImplarg - An Attr node to store in this map.
DOMException - The exception description.NamedNodeMap.setNamedItem(org.w3c.dom.Node)
public Node setNamedItemNS(Node arg)
throws DOMException
setNamedItemNS in interface NamedNodeMapsetNamedItemNS in class NamedNodeMapImplarg - A node to store in a named node map.
DOMException - WRONG_DOCUMENT_ERR: Raised if arg was created from a
different document than the one that created this map.
arg is an
Attr that is already an attribute of another
Element object. The DOM user must explicitly clone
Attr nodes to re-use them in other elements.
NamedNodeMap.setNamedItem(org.w3c.dom.Node)
public Node removeNamedItem(java.lang.String name)
throws DOMException
NamedNodeMap
removeNamedItem in interface NamedNodeMapremoveNamedItem in class NamedNodeMapImplname - The nodeName of the node to remove.
DOMException - NOT_FOUND_ERR: Raised if there is no node named name in
this map.
public Node removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String name)
throws DOMException
Removes an attribute specified by local name and namespace URI.
removeNamedItemNS in interface NamedNodeMapremoveNamedItemNS in class NamedNodeMapImplnamespaceURI - The namespace URI of the node to remove.
When it is null or an empty string, this
method behaves like removeNamedItem.name - The local name of the node to remove. If the
removed attribute is known to have a default
value, an attribute immediately appears
containing the default value.
NOT_FOUND_ERR: - Raised if there is no node named
name in the map.
DOMException - NOT_FOUND_ERR: Raised if there is no node with the specified
namespaceURI and localName in this map.
public NamedNodeMapImpl cloneMap(NodeImpl ownerNode)
cloneMap in class NamedNodeMapImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||