|
||||||||||
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(org.w3c.dom.Node arg)
Checks the validity of a node to add. |
protected org.w3c.dom.Node |
get(java.lang.String ns,
java.lang.String nm)
Gets the value of a variable |
int |
getLength()
DOM: Implements NamedNodeMap.getLength() . |
org.w3c.dom.Node |
getNamedItem(java.lang.String name)
DOM: Implements NamedNodeMap.getNamedItem(String) . |
org.w3c.dom.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. |
org.w3c.dom.Node |
item(int index)
DOM: Implements NamedNodeMap.item(int) . |
protected org.w3c.dom.Node |
put(java.lang.String ns,
java.lang.String nm,
org.w3c.dom.Node value)
Sets a new value for the given variable |
protected void |
rehash()
Rehash and grow the table. |
protected org.w3c.dom.Node |
remove(java.lang.String ns,
java.lang.String nm)
Removes an entry from the table. |
org.w3c.dom.Node |
removeNamedItem(java.lang.String name)
DOM: Implements NamedNodeMap.removeNamedItem(String) . |
org.w3c.dom.Node |
removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements NamedNodeMap.removeNamedItemNS(String,String) . |
org.w3c.dom.Node |
setNamedItem(org.w3c.dom.Node arg)
DOM: Implements NamedNodeMap.setNamedItem(Node) . |
org.w3c.dom.Node |
setNamedItem(java.lang.String ns,
java.lang.String name,
org.w3c.dom.Node arg)
Adds a node to the map. |
org.w3c.dom.Node |
setNamedItemNS(org.w3c.dom.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 org.w3c.dom.Node getNamedItem(java.lang.String name)
NamedNodeMap.getNamedItem(String)
.
getNamedItem
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node arg) throws org.w3c.dom.DOMException
NamedNodeMap.setNamedItem(Node)
.
setNamedItem
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node removeNamedItem(java.lang.String name) throws org.w3c.dom.DOMException
NamedNodeMap.removeNamedItem(String)
.
removeNamedItem
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node item(int index)
NamedNodeMap.item(int)
.
item
in interface org.w3c.dom.NamedNodeMap
public int getLength()
NamedNodeMap.getLength()
.
getLength
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName)
NamedNodeMap.getNamedItemNS(String,String)
.
getNamedItemNS
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg) throws org.w3c.dom.DOMException
NamedNodeMap.setNamedItemNS(Node)
.
setNamedItemNS
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) throws org.w3c.dom.DOMException
NamedNodeMap.removeNamedItemNS(String,String)
.
removeNamedItemNS
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node setNamedItem(java.lang.String ns, java.lang.String name, org.w3c.dom.Node arg) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
protected void checkNode(org.w3c.dom.Node arg)
protected org.w3c.dom.Node get(java.lang.String ns, java.lang.String nm)
protected org.w3c.dom.Node put(java.lang.String ns, java.lang.String nm, org.w3c.dom.Node value)
protected org.w3c.dom.Node remove(java.lang.String ns, java.lang.String nm)
protected void rehash()
protected int hashCode(java.lang.String ns, java.lang.String nm)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |