org.apache.axis2.om.impl.dom
Class AttributeMap
java.lang.Object
org.apache.axis2.om.impl.dom.NamedNodeMapImpl
org.apache.axis2.om.impl.dom.AttributeMap
- All Implemented Interfaces:
- org.w3c.dom.NamedNodeMap
- public class AttributeMap
- extends NamedNodeMapImpl
- Author:
- Ruchith Fernando (ruchith.fernando@gmail.com)
|
Method Summary |
org.w3c.dom.Node |
removeNamedItem(java.lang.String name)
|
org.w3c.dom.Node |
removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String name)
Introduced in DOM Level 2. |
org.w3c.dom.Node |
setNamedItem(org.w3c.dom.Node attribute)
This is mostly a copy of the Xerces impl |
org.w3c.dom.Node |
setNamedItemNS(org.w3c.dom.Node attribute)
This is mostly a copy of the Xerces impl |
| Methods inherited from class org.apache.axis2.om.impl.dom.NamedNodeMapImpl |
addItem, cloneMap, findNamePoint, findNamePoint, getItem, getLength, getNamedItem, getNamedItemIndex, getNamedItemNS, 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.
- Returns:
- Node 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
- This is mostly 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:
- If the new Node replaces an existing node the replaced Node is returned,
otherwise null is returned.
- 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
- This is mostly 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:
- If the new Node replaces an existing node the replaced Node is returned,
otherwise null is returned.
- Throws:
org.w3c.dom.DOMException- See Also:
NamedNodeMap.setNamedItem(org.w3c.dom.Node)