| java.lang.Object org.ozoneDB.OzoneObject org.ozoneDB.xml.dom.NamedNodeMapImpl
NamedNodeMapImpl | final public class NamedNodeMapImpl extends OzoneObject implements NamedNodeMapProxy,Externalizable(Code) | | Implements a collection of nodes that can be accessed by name. Used mostly by
DocumentTypeImpl to hold collections of element, notation and other
definitions.
The actual collection of objects is held by some owner node in a
java.util.Dictionary . This map object provides access to this dictionary
in a manner that is consistent with the DOM. This map can be accessed
concurrently, so the owner need only create one map per dictionary.
Nodes are not maintained in any particular order, so accessing them by index
can be expected to be a slow operation.
version: $Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $ author: Assaf Arkin See Also: org.w3c.dom.NamedNodeMap |
serialVersionUID | final static long serialVersionUID(Code) | | |
NamedNodeMapImpl | public NamedNodeMapImpl(NodeProxy owner, Dictionary dictionary)(Code) | | Constructor required the owner of this dictionary and a reference to the
dictionary. Once constructed, the map is ready for use.
Parameters: owner - The owner of this dictionary Parameters: dictionary - The dictionary managed by that owner |
NamedNodeMapImpl | public NamedNodeMapImpl()(Code) | | |
elements | public Enumeration elements()(Code) | | So we lied about the owner managing the dictionary. But just in case
the owner would like to traverse the dictionary list without resorting
to the slower indexed method.
Enumeration of all elements in the dictionary |
getLength | public int getLength()(Code) | | |
item | public synchronized Node item(int index)(Code) | | |
|
|