| java.lang.Object org.apache.xerces.dom.NamedNodeMapImpl org.apache.xerces.dom.AttributeMap
AttributeMap | public class AttributeMap extends NamedNodeMapImpl (Code) | | AttributeMap inherits from NamedNodeMapImpl and extends it to deal with the
specifics of storing attributes. These are:
- managing ownership of attribute nodes
- managing default attributes
- firing mutation events
This class doesn't directly support mutation events, however, it notifies
the document when mutations are performed so that the document class do so.
version: $Id: AttributeMap.java 449328 2006-09-23 22:58:23Z mrglavas $ |
serialVersionUID | final static long serialVersionUID(Code) | | Serialization version.
|
addItem | final protected int addItem(Node arg)(Code) | | |
cloneContent | protected void cloneContent(NamedNodeMapImpl srcmap)(Code) | | Override parent's method to set the ownerNode correctly
|
cloneMap | public NamedNodeMapImpl cloneMap(NodeImpl ownerNode)(Code) | | Cloning a NamedNodeMap is a DEEP OPERATION; it always clones
all the nodes contained in the map.
|
internalRemoveNamedItem | final protected Node internalRemoveNamedItem(String name, boolean raiseEx)(Code) | | Internal removeNamedItem method allowing to specify whether an exception
must be thrown if the specified name is not found.
|
internalRemoveNamedItemNS | final protected Node internalRemoveNamedItemNS(String namespaceURI, String name, boolean raiseEx)(Code) | | Internal removeNamedItemNS method allowing to specify whether an
exception must be thrown if the specified local name and namespace URI
is not found.
|
moveSpecifiedAttributes | void moveSpecifiedAttributes(AttributeMap srcmap)(Code) | | Move specified attributes from the given map to this one
|
reconcileDefaults | protected void reconcileDefaults(NamedNodeMapImpl defaults)(Code) | | Get this AttributeMap in sync with the given "defaults" map.
Parameters: defaults - The default attributes map to sync with. |
removeItem | protected Node removeItem(Node item, boolean addDefault) throws DOMException(Code) | | NON-DOM: Remove the node object
NOTE: Specifically removes THIS NODE -- not the node with this
name, nor the node with these contents. If node does not belong to
this named node map, we throw a DOMException.
Parameters: item - The node to remove Parameters: addDefault - true -- magically add default attribute Removed node exception: DOMException - |
removeNamedItemNS | public Node removeNamedItemNS(String namespaceURI, String name) throws DOMException(Code) | | Introduced in DOM Level 2.
Removes an attribute specified by local name and namespace URI.
Parameters: namespaceURI - The namespace URI of the node to remove.When it is null or an empty string, thismethod behaves like removeNamedItem. Parameters: name - The local name of the node to remove. If theremoved attribute is known to have a defaultvalue, an attribute immediately appearscontaining the default value. Node The node removed from the map if a node with sucha local name and namespace URI exists. throws: NOT_FOUND_ERR - : Raised if there is no node namedname in the map. |
safeRemoveNamedItem | Node safeRemoveNamedItem(String name)(Code) | | Same as removeNamedItem except that it simply returns null if the
specified name is not found.
|
safeRemoveNamedItemNS | Node safeRemoveNamedItemNS(String namespaceURI, String name)(Code) | | Same as removeNamedItem except that it simply returns null if the
specified local name and namespace URI is not found.
|
setNamedItemNS | public Node setNamedItemNS(Node arg) throws DOMException(Code) | | Adds an attribute using its namespaceURI and localName.
See Also: org.w3c.dom.NamedNodeMap.setNamedItem If the new Node replaces an existing node the replaced Node isreturned, otherwise null is returned. Parameters: arg - A node to store in a named node map. |
|
|