org.apache.batik.dom
public class AbstractElement.NamedNodeHashMap extends Object implements NamedNodeMap, Serializable
Field Summary | |
---|---|
protected int | count
The number of entries |
protected static int | INITIAL_CAPACITY
The initial capacity |
protected AbstractElement.Entry[] | table
The underlying array |
Constructor Summary | |
---|---|
NamedNodeHashMap()
Creates a new NamedNodeHashMap object. |
Method Summary | |
---|---|
protected void | checkNode(Node arg)
Checks the validity of a node to add. |
protected Node | get(String ns, String nm)
Gets the value of a variable
|
int | getLength()
DOM: Implements org.w3c.dom.NamedNodeMap#getLength(). |
Node | getNamedItem(String name)
DOM: Implements org.w3c.dom.NamedNodeMap#getNamedItem(String). |
Node | getNamedItemNS(String namespaceURI, String localName)
DOM: Implements org.w3c.dom.NamedNodeMap#getNamedItemNS(String,String). |
protected int | hashCode(String ns, String nm)
Computes a hash code corresponding to the given strings. |
Node | item(int index)
DOM: Implements org.w3c.dom.NamedNodeMap#item(int). |
protected Node | put(String ns, String nm, Node value)
Sets a new value for the given variable
|
protected void | rehash()
Rehash and grow the table. |
protected Node | remove(String ns, String nm)
Removes an entry from the table.
|
Node | removeNamedItem(String name)
DOM: Implements org.w3c.dom.NamedNodeMap#removeNamedItem(String). |
Node | removeNamedItemNS(String namespaceURI, String localName)
DOM: Implements org.w3c.dom.NamedNodeMap#removeNamedItemNS(String,String). |
Node | setNamedItem(Node arg)
DOM: Implements org.w3c.dom.NamedNodeMap#setNamedItem(Node). |
Node | setNamedItem(String ns, String name, Node arg)
Adds a node to the map. |
Node | setNamedItemNS(Node arg)
DOM: Implements org.w3c.dom.NamedNodeMap#setNamedItemNS(Node). |
Returns: the value or null
Returns: the old value or null
Returns: the value or null.