org.apache.axiom.om.impl.dom
Class AttributeMap
java.lang.Object
org.apache.axiom.om.impl.dom.NamedNodeMapImpl
org.apache.axiom.om.impl.dom.AttributeMap
- All Implemented Interfaces:
- org.w3c.dom.NamedNodeMap
public class AttributeMap
- extends NamedNodeMapImpl
Methods inherited from class org.apache.axiom.om.impl.dom.NamedNodeMapImpl |
addItem, changed, changed, cloneMap, findNamePoint, findNamePoint, getItem, getLength, getNamedItem, getNamedItemIndex, getNamedItemNS, hasDefaults, hasDefaults, isReadOnly, isReadOnly, item, precedes, removeAll, removeItem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeMap
protected AttributeMap(ParentNode ownerNode)
- Parameters:
ownerNode
-
removeNamedItem
public org.w3c.dom.Node removeNamedItem(java.lang.String name)
throws org.w3c.dom.DOMException
- Specified by:
removeNamedItem
in interface org.w3c.dom.NamedNodeMap
- Overrides:
removeNamedItem
in class NamedNodeMapImpl
- Throws:
org.w3c.dom.DOMException
removeNamedItemNS
public org.w3c.dom.Node removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String name)
throws org.w3c.dom.DOMException
- Description copied from class:
NamedNodeMapImpl
- Introduced in DOM Level 2. Removes a node specified by local name and namespace URI.
- Specified by:
removeNamedItemNS
in interface org.w3c.dom.NamedNodeMap
- Overrides:
removeNamedItemNS
in class NamedNodeMapImpl
- Parameters:
namespaceURI
- 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.
- Returns:
- Returns the node removed from the map if a node with such a local name and namespace
URI exists.
- Throws:
org.w3c.dom.DOMException
setNamedItem
public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node attribute)
throws org.w3c.dom.DOMException
- Almost a copy of the Xerces impl.
- Specified by:
setNamedItem
in interface org.w3c.dom.NamedNodeMap
- Overrides:
setNamedItem
in class NamedNodeMapImpl
- Parameters:
attribute
- A node to store in a named node map. The node will later be accessible using the
value of the namespaceURI and localName attribute of the node. If a node with
those namespace URI and local name is already present in the map, it is replaced
by the new one.
- Returns:
- Returns the replaced Node if the new Node replaces an existing node, otherwise
returns null.
- Throws:
org.w3c.dom.DOMException
- The exception description.- See Also:
NamedNodeMap.setNamedItem(org.w3c.dom.Node)
setNamedItemNS
public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node attribute)
throws org.w3c.dom.DOMException
- Almost a copy of the Xerces impl.
- Specified by:
setNamedItemNS
in interface org.w3c.dom.NamedNodeMap
- Overrides:
setNamedItemNS
in class NamedNodeMapImpl
- Parameters:
attribute
- A node to store in a named node map. The node will later be accessible using the
value of the namespaceURI and localName attribute of the node. If a node with
those namespace URI and local name is already present in the map, it is replaced
by the new one.
- Returns:
- Returns the replaced Node if the new Node replaces an existing node else returns
null.
- Throws:
org.w3c.dom.DOMException
- See Also:
NamedNodeMap.setNamedItem(org.w3c.dom.Node)
cloneMap
public NamedNodeMapImpl cloneMap(NodeImpl ownerNode)
- BORROWED from Xerces impl. Cloning a NamedNodeMap is a DEEP OPERATION; it always clones all
the nodes contained in the map.
cloneContent
protected void cloneContent(NamedNodeMapImpl srcmap)
- BORROWED from Xerces impl.