Class AbstractElement.NamedNodeHashMap
java.lang.Object
org.apache.batik.dom.AbstractElement.NamedNodeHashMap
- All Implemented Interfaces:
Serializable, NamedNodeMap
- Direct Known Subclasses:
AbstractElement.ExtendedNamedNodeHashMap
- Enclosing class:
AbstractElement
An implementation of the
This Map is not Thread-safe, concurrent updates or reading while updating may give unexpected results.
NamedNodeMap.
This Map is not Thread-safe, concurrent updates or reading while updating may give unexpected results.
- Version:
- $Id$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe number of entriesprotected static final intThe initial capacityprotected AbstractElement.Entry[]The underlying array -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks the validity of a node to add.protected NodeGets the value of a variableintDOM: ImplementsNamedNodeMap.getLength().getNamedItem(String name) DOM: ImplementsNamedNodeMap.getNamedItem(String).getNamedItemNS(String namespaceURI, String localName) DOM: ImplementsNamedNodeMap.getNamedItemNS(String,String).protected intComputes a hash code corresponding to the given strings.item(int index) DOM: ImplementsNamedNodeMap.item(int).protected NodeSets a new value for the given variableprotected voidrehash()Rehash and grow the table.protected NodeRemoves an entry from the table.removeNamedItem(String name) DOM: ImplementsNamedNodeMap.removeNamedItem(String).removeNamedItemNS(String namespaceURI, String localName) DOM: ImplementsNamedNodeMap.removeNamedItemNS(String,String).setNamedItem(String ns, String name, Node arg) Adds a node to the map.setNamedItem(Node arg) DOM: ImplementsNamedNodeMap.setNamedItem(Node).setNamedItemNS(Node arg) DOM: ImplementsNamedNodeMap.setNamedItemNS(Node).
-
Field Details
-
INITIAL_CAPACITY
protected static final int INITIAL_CAPACITYThe initial capacity- See Also:
-
table
The underlying array -
count
protected int countThe number of entries
-
-
Constructor Details
-
NamedNodeHashMap
public NamedNodeHashMap()Creates a new NamedNodeHashMap object.
-
-
Method Details
-
getNamedItem
DOM: ImplementsNamedNodeMap.getNamedItem(String).- Specified by:
getNamedItemin interfaceNamedNodeMap
-
setNamedItem
DOM: ImplementsNamedNodeMap.setNamedItem(Node).- Specified by:
setNamedItemin interfaceNamedNodeMap- Throws:
DOMException
-
removeNamedItem
DOM: ImplementsNamedNodeMap.removeNamedItem(String).- Specified by:
removeNamedItemin interfaceNamedNodeMap- Throws:
DOMException
-
item
DOM: ImplementsNamedNodeMap.item(int).- Specified by:
itemin interfaceNamedNodeMap
-
getLength
public int getLength()DOM: ImplementsNamedNodeMap.getLength().- Specified by:
getLengthin interfaceNamedNodeMap
-
getNamedItemNS
DOM: ImplementsNamedNodeMap.getNamedItemNS(String,String).- Specified by:
getNamedItemNSin interfaceNamedNodeMap
-
setNamedItemNS
DOM: ImplementsNamedNodeMap.setNamedItemNS(Node).- Specified by:
setNamedItemNSin interfaceNamedNodeMap- Throws:
DOMException
-
removeNamedItemNS
DOM: ImplementsNamedNodeMap.removeNamedItemNS(String,String).- Specified by:
removeNamedItemNSin interfaceNamedNodeMap- Throws:
DOMException
-
setNamedItem
Adds a node to the map.- Throws:
DOMException
-
checkNode
Checks the validity of a node to add. -
get
-
put
-
remove
-
rehash
protected void rehash()Rehash and grow the table. -
hashCode
-