This class doesn't directly support mutation events, however, it notifies the document when mutations are performed so that the document class do so.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long | serialVersionUID
Hides com. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected final int | |
| protected void | cloneContent(NamedNodeMapImpl srcmap)
Overrides com. Override parent's method to set the ownerNode correctly |
| public NamedNodeMapImpl | cloneMap(NodeImpl ownerNode)
Overrides com. Cloning a NamedNodeMap is a DEEP OPERATION; it always clones all the nodes contained in the map. |
| protected final Node | internalRemoveNamedItem(String name, boolean raiseEx)
Internal removeNamedItem method allowing to specify whether an exception must be thrown if the specified name is not found. |
| protected final Node | internalRemoveNamedItemNS(String namespaceURI, String name, boolean raiseEx)
Internal removeNamedItemNS method allowing to specify whether an exception must be thrown if the specified local name and namespace URI is not found. |
| pack-priv void | moveSpecifiedAttributes(AttributeMap srcmap)
Move specified attributes from the given map to this one |
| protected void | reconcileDefaults(NamedNodeMapImpl
The default attributes map to sync with. defaults)Get this AttributeMap in sync with the given "defaults" map. |
| private final Node | |
| protected Node | Returns: Removed nodeThe node to remove item, boolean true -- magically add default attribute addDefault)NON-DOM: Remove the node object NOTE: Specifically removes THIS NODE -- not the node with this name, nor the node with these contents. |
| public Node | removeNamedItem(String name)
Overrides com. Implements org. Removes a node specified by name. |
| public Node | Returns: Node The node removed from the map if a node with such a local name and namespace URI exists.The namespace URI of the node to remove.
When it is null or an empty string, this
method behaves like removeNamedItem. namespaceURI, String 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. name)Overrides com. Implements org. Introduced in DOM Level 2. |
| pack-priv Node | safeRemoveNamedItem(String name)
Same as removeNamedItem except that it simply returns null if the specified name is not found. |
| pack-priv Node | safeRemoveNamedItemNS(String namespaceURI, String name)
Same as removeNamedItem except that it simply returns null if the specified local name and namespace URI is not found. |
| public Node | Returns: If the new Node replaces an existing node the replaced Node is returned, otherwise null is returned.An Attr node to store in this map. arg)Overrides com. Implements org. Adds an attribute using its nodeName attribute. |
| public Node | Returns: If the new Node replaces an existing node the replaced Node is returned, otherwise null is returned.A node to store in a named node map. arg)Overrides com. Implements org. Adds an attribute using its namespaceURI and localName. |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides com. Serialization version. | |
| AttributeMap | back to summary |
|---|---|
| protected AttributeMap(ElementImpl ownerNode, NamedNodeMapImpl defaults) Constructs a named node map. | |
| addItem | back to summary |
|---|---|
| protected final int addItem(Node arg) Overrides com. | |
| cloneContent | back to summary |
|---|---|
| protected void cloneContent(NamedNodeMapImpl srcmap) Overrides com. Override parent's method to set the ownerNode correctly | |
| cloneMap | back to summary |
|---|---|
| public NamedNodeMapImpl cloneMap(NodeImpl ownerNode) Overrides com. Cloning a NamedNodeMap is a DEEP OPERATION; it always clones all the nodes contained in the map. | |
| internalRemoveNamedItem | back to summary |
|---|---|
| protected final Node internalRemoveNamedItem(String name, boolean raiseEx) Internal removeNamedItem method allowing to specify whether an exception must be thrown if the specified name is not found. | |
| internalRemoveNamedItemNS | back to summary |
|---|---|
| protected final Node internalRemoveNamedItemNS(String namespaceURI, String name, boolean raiseEx) Internal removeNamedItemNS method allowing to specify whether an exception must be thrown if the specified local name and namespace URI is not found. | |
| moveSpecifiedAttributes | back to summary |
|---|---|
| pack-priv void moveSpecifiedAttributes(AttributeMap srcmap) Move specified attributes from the given map to this one | |
| reconcileDefaults | back to summary |
|---|---|
| protected void reconcileDefaults(NamedNodeMapImpl defaults) Get this AttributeMap in sync with the given "defaults" map.
| |
| remove | back to summary |
|---|---|
| private final Node remove(AttrImpl attr, int index, boolean addDefault) | |
| removeItem | back to summary |
|---|---|
| protected Node removeItem(Node item, boolean addDefault) throws DOMException 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. | |
| removeNamedItem | back to summary |
|---|---|
| public Node removeNamedItem(String name) throws DOMException Overrides com. Implements org. Doc from org. Removes a node specified by name. When this map contains the attributes attached to an element, if the removed attribute is known to have a default value, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.
| |
| removeNamedItemNS | back to summary |
|---|---|
| public Node removeNamedItemNS(String namespaceURI, String name) throws DOMException Overrides com. Implements org. Introduced in DOM Level 2. Removes an attribute specified by local name and namespace URI.
| |
| safeRemoveNamedItem | back to summary |
|---|---|
| pack-priv Node safeRemoveNamedItem(String name) Same as removeNamedItem except that it simply returns null if the specified name is not found. | |
| safeRemoveNamedItemNS | back to summary |
|---|---|
| pack-priv Node safeRemoveNamedItemNS(String namespaceURI, String name) Same as removeNamedItem except that it simply returns null if the specified local name and namespace URI is not found. | |
| setNamedItem | back to summary |
|---|---|
| public Node setNamedItem(Node arg) throws DOMException Overrides com. Implements org. Adds an attribute using its nodeName attribute.
| |
| setNamedItemNS | back to summary |
|---|---|
| public Node setNamedItemNS(Node arg) throws DOMException Overrides com. Implements org. Adds an attribute using its namespaceURI and localName.
| |