public class AttributeMap extends NamedNodeMapImpl
CHANGED, flags, HASDEFAULTS, READONLY
Modifier | Constructor and Description |
---|---|
protected |
AttributeMap(ParentNode ownerNode) |
Modifier and Type | Method and Description |
---|---|
protected void |
cloneContent(NamedNodeMapImpl srcmap)
BORROWED from Xerces impl.
|
NamedNodeMapImpl |
cloneMap(NodeImpl ownerNode)
BORROWED from Xerces impl.
|
Node |
removeNamedItem(String name) |
Node |
removeNamedItemNS(String namespaceURI,
String name)
Introduced in DOM Level 2.
|
Node |
setNamedItem(Node attribute)
Almost a copy of the Xerces impl.
|
Node |
setNamedItemNS(Node attribute)
Almost a copy of the Xerces impl.
|
addItem, cloneMap, findNamePoint, findNamePoint, getItem, getLength, getNamedItem, getNamedItemIndex, getNamedItemNS, item, precedes, removeAll, removeItem
protected AttributeMap(ParentNode ownerNode)
ownerNode
- public Node removeNamedItem(String name) throws DOMException
removeNamedItem
in interface NamedNodeMap
removeNamedItem
in class NamedNodeMapImpl
DOMException
public Node removeNamedItemNS(String namespaceURI, String name) throws DOMException
NamedNodeMapImpl
removeNamedItemNS
in interface NamedNodeMap
removeNamedItemNS
in class NamedNodeMapImpl
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.DOMException
public Node setNamedItem(Node attribute) throws DOMException
setNamedItem
in interface NamedNodeMap
setNamedItem
in class NamedNodeMapImpl
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.DOMException
- The exception description.NamedNodeMap.setNamedItem(org.w3c.dom.Node)
public Node setNamedItemNS(Node attribute) throws DOMException
setNamedItemNS
in interface NamedNodeMap
setNamedItemNS
in class NamedNodeMapImpl
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.DOMException
NamedNodeMap.setNamedItem(org.w3c.dom.Node)
public NamedNodeMapImpl cloneMap(NodeImpl ownerNode)
protected void cloneContent(NamedNodeMapImpl srcmap)
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.