Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public int | |
public Node | getNamedItem(String
The name)nodeName of a node to retrieve.Implements org. Retrieves a node specified by name. |
public Node | getNamedItemNS(String
The namespace URI of the node to retrieve. namespaceURI, String The local name of the node to retrieve. localName)Implements org. Retrieves a node specified by local name and namespace URI. |
public Node | item(int
Index into this map. index)Implements org. Returns the |
public Node | removeNamedItem(String
The name)nodeName of the node to remove.Implements org. Removes a node specified by name. |
public Node | removeNamedItemNS(String
The namespace URI of the node to remove. namespaceURI, String The local name of the node to remove. localName)Implements org. Removes a node specified by local name and namespace URI. |
public Node | setNamedItem(Node
A node to store in this map. The node will later be
accessible using the value of its arg)nodeName attribute.Implements org. Adds a node using its |
public Node | setNamedItemNS(Node
A node to store in this map. The node will later be
accessible using the value of its arg)namespaceURI and
localName attributes.Implements org. Adds a node using its |
attrs | back to summary |
---|---|
pack-priv Attr[] attrs |
NamedNodeMapImpl | back to summary |
---|---|
public NamedNodeMapImpl(Attr[] attrs) |
getLength | back to summary |
---|---|
public int getLength() Implements org. Doc from org. The number of nodes in this map. The range of valid child node indices
is |
getNamedItem | back to summary |
---|---|
public Node getNamedItem(String name) Implements org. Doc from org. Retrieves a node specified by name. |
getNamedItemNS | back to summary |
---|---|
public Node getNamedItemNS(String namespaceURI, String localName) Implements org. Doc from org. Retrieves a node specified by local name and namespace URI.
|
item | back to summary |
---|---|
public Node item(int index) Implements org. Doc from org. Returns the
|
removeNamedItem | back to summary |
---|---|
public Node removeNamedItem(String name) throws DOMException 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 localName) throws DOMException Implements org. Doc from org. Removes a node specified by local name and namespace URI. A removed
attribute may be known to have a default value when this map contains
the attributes attached to an element, as returned by the attributes
attribute of the
|
setNamedItem | back to summary |
---|---|
public Node setNamedItem(Node arg) throws DOMException Implements org. Doc from org. Adds a node using its
|
setNamedItemNS | back to summary |
---|---|
public Node setNamedItemNS(Node arg) throws DOMException Implements org. Doc from org. Adds a node using its
|