|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.beasys.commerce.util.dom.DOMBase
|
+--com.beasys.commerce.util.dom.NamedNodeMapImpl
An implementation of the W3C's DOM NamedNodeMap object.
This implementation uses a Hashtable of Nodes to support the map, plus a Vector of the same Nodes to support ordered iteration. It probably could have better memory management, but this was easiest.
| Constructor Summary | |
NamedNodeMapImpl(org.w3c.dom.Document owner)
Constructor. |
|
| Method Summary | |
java.lang.Object |
clone()
Make a shallow clone of this object. |
int |
getLength()
Return the number of nodes in this map. |
org.w3c.dom.Node |
getNamedItem(java.lang.String name)
Get the named node in this map. |
org.w3c.dom.Node |
item(int index)
Retrieve the node at index. |
org.w3c.dom.Node |
removeNamedItem(java.lang.String name)
Remove the named node from this map. |
org.w3c.dom.Node |
setNamedItem(org.w3c.dom.Node node)
Add a node using the node's name. |
| Methods inherited from class com.beasys.commerce.util.dom.DOMBase |
checkOwnerDocument,
getOwnerDocument,
isReadOnly,
setReadOnly |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public NamedNodeMapImpl(org.w3c.dom.Document owner)
| Method Detail |
public java.lang.Object clone()
public int getLength()
public org.w3c.dom.Node item(int index)
public org.w3c.dom.Node getNamedItem(java.lang.String name)
name - the name of the node.
public org.w3c.dom.Node removeNamedItem(java.lang.String name)
throws org.w3c.dom.DOMException
name - the name of the node.
public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node node)
throws org.w3c.dom.DOMException
node - the node to add.
|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||