public class AbstractElement.NamedNodeHashMap extends java.lang.Object implements NamedNodeMap, java.io.Serializable
NamedNodeMap
.
Modifier and Type | Field and Description |
---|---|
protected int |
count
The number of entries
|
protected static int |
INITIAL_CAPACITY
The initial capacity
|
protected AbstractElement.Entry[] |
table
The underlying array
|
Constructor and Description |
---|
NamedNodeHashMap()
Creates a new NamedNodeHashMap object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkNode(Node arg)
Checks the validity of a node to add.
|
protected Node |
get(java.lang.String ns,
java.lang.String nm)
Gets the value of a variable
|
int |
getLength()
DOM: Implements
NamedNodeMap.getLength() . |
Node |
getNamedItem(java.lang.String name)
DOM: Implements
NamedNodeMap.getNamedItem(String) . |
Node |
getNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements
NamedNodeMap.getNamedItemNS(String,String) . |
protected int |
hashCode(java.lang.String ns,
java.lang.String nm)
Computes a hash code corresponding to the given strings.
|
Node |
item(int index)
DOM: Implements
NamedNodeMap.item(int) . |
protected Node |
put(java.lang.String ns,
java.lang.String nm,
Node value)
Sets a new value for the given variable
|
protected void |
rehash()
Rehash and grow the table.
|
protected Node |
remove(java.lang.String ns,
java.lang.String nm)
Removes an entry from the table.
|
Node |
removeNamedItem(java.lang.String name)
DOM: Implements
NamedNodeMap.removeNamedItem(String) . |
Node |
removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements
NamedNodeMap.removeNamedItemNS(String,String) . |
Node |
setNamedItem(Node arg)
DOM: Implements
NamedNodeMap.setNamedItem(Node) . |
Node |
setNamedItem(java.lang.String ns,
java.lang.String name,
Node arg)
Adds a node to the map.
|
Node |
setNamedItemNS(Node arg)
DOM: Implements
NamedNodeMap.setNamedItemNS(Node) . |
protected static final int INITIAL_CAPACITY
protected AbstractElement.Entry[] table
protected int count
public NamedNodeHashMap()
public Node getNamedItem(java.lang.String name)
NamedNodeMap.getNamedItem(String)
.getNamedItem
in interface NamedNodeMap
public Node setNamedItem(Node arg) throws DOMException
NamedNodeMap.setNamedItem(Node)
.setNamedItem
in interface NamedNodeMap
DOMException
public Node removeNamedItem(java.lang.String name) throws DOMException
NamedNodeMap.removeNamedItem(String)
.removeNamedItem
in interface NamedNodeMap
DOMException
public Node item(int index)
NamedNodeMap.item(int)
.item
in interface NamedNodeMap
public int getLength()
NamedNodeMap.getLength()
.getLength
in interface NamedNodeMap
public Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
NamedNodeMap.getNamedItemNS(String,String)
.getNamedItemNS
in interface NamedNodeMap
public Node setNamedItemNS(Node arg) throws DOMException
NamedNodeMap.setNamedItemNS(Node)
.setNamedItemNS
in interface NamedNodeMap
DOMException
public Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) throws DOMException
NamedNodeMap.removeNamedItemNS(String,String)
.removeNamedItemNS
in interface NamedNodeMap
DOMException
public Node setNamedItem(java.lang.String ns, java.lang.String name, Node arg) throws DOMException
DOMException
protected void checkNode(Node arg)
protected Node get(java.lang.String ns, java.lang.String nm)
protected Node put(java.lang.String ns, java.lang.String nm, Node value)
protected Node remove(java.lang.String ns, java.lang.String nm)
protected void rehash()
protected int hashCode(java.lang.String ns, java.lang.String nm)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.