|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.AbstractElement.NamedNodeHashMap
public class AbstractElement.NamedNodeHashMap
An implementation of the NamedNodeMap.
This Map is not Thread-safe, concurrent updates or reading while updating may give
unexpected results.
| 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 | |
|---|---|
AbstractElement.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 NamedNodeMap.getLength(). |
Node |
getNamedItem(String name)
DOM: Implements NamedNodeMap.getNamedItem(String). |
Node |
getNamedItemNS(String namespaceURI,
String localName)
DOM: Implements 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 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 NamedNodeMap.removeNamedItem(String). |
Node |
removeNamedItemNS(String namespaceURI,
String localName)
DOM: Implements NamedNodeMap.removeNamedItemNS(String,String). |
Node |
setNamedItem(Node arg)
DOM: Implements NamedNodeMap.setNamedItem(Node). |
Node |
setNamedItem(String ns,
String name,
Node arg)
Adds a node to the map. |
Node |
setNamedItemNS(Node arg)
DOM: Implements NamedNodeMap.setNamedItemNS(Node). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int INITIAL_CAPACITY
protected AbstractElement.Entry[] table
protected int count
| Constructor Detail |
|---|
public AbstractElement.NamedNodeHashMap()
| Method Detail |
|---|
public Node getNamedItem(String name)
NamedNodeMap.getNamedItem(String).
getNamedItem in interface NamedNodeMap
public Node setNamedItem(Node arg)
throws DOMException
NamedNodeMap.setNamedItem(Node).
setNamedItem in interface NamedNodeMapDOMException
public Node removeNamedItem(String name)
throws DOMException
NamedNodeMap.removeNamedItem(String).
removeNamedItem in interface NamedNodeMapDOMExceptionpublic Node item(int index)
NamedNodeMap.item(int).
item in interface NamedNodeMappublic int getLength()
NamedNodeMap.getLength().
getLength in interface NamedNodeMap
public Node getNamedItemNS(String namespaceURI,
String localName)
NamedNodeMap.getNamedItemNS(String,String).
getNamedItemNS in interface NamedNodeMap
public Node setNamedItemNS(Node arg)
throws DOMException
NamedNodeMap.setNamedItemNS(Node).
setNamedItemNS in interface NamedNodeMapDOMException
public Node removeNamedItemNS(String namespaceURI,
String localName)
throws DOMException
NamedNodeMap.removeNamedItemNS(String,String).
removeNamedItemNS in interface NamedNodeMapDOMException
public Node setNamedItem(String ns,
String name,
Node arg)
throws DOMException
DOMExceptionprotected void checkNode(Node arg)
protected Node get(String ns,
String nm)
protected Node put(String ns,
String nm,
Node value)
protected Node remove(String ns,
String nm)
protected void rehash()
protected int hashCode(String ns,
String nm)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||