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:
- NamedNodeMap
public class AttributeMap
- extends NamedNodeMapImpl
Methods inherited from class org.apache.axiom.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 Node removeNamedItem(String name)
throws DOMException
- Specified by:
removeNamedItem
in interface NamedNodeMap
- Overrides:
removeNamedItem
in class NamedNodeMapImpl
- Throws:
DOMException
removeNamedItemNS
public Node removeNamedItemNS(String namespaceURI,
String name)
throws 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 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:
DOMException
setNamedItem
public Node setNamedItem(Node attribute)
throws DOMException
- Almost a copy of the Xerces impl.
- Specified by:
setNamedItem
in interface 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:
DOMException
- The exception description.- See Also:
NamedNodeMap.setNamedItem(org.w3c.dom.Node)
setNamedItemNS
public Node setNamedItemNS(Node attribute)
throws DOMException
- Almost a copy of the Xerces impl.
- Specified by:
setNamedItemNS
in interface 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:
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.
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.