Public Methods | |
Constructors and assignment operator | |
DOM_NamedNodeMap () | |
DOM_NamedNodeMap (const DOM_NamedNodeMap &other) | |
DOM_NamedNodeMap & | operator= (const DOM_NamedNodeMap &other) |
DOM_NamedNodeMap & | operator= (const DOM_NullPtr *other) |
Destructor. | |
~DOM_NamedNodeMap () | |
bool | operator== (const DOM_NamedNodeMap &other) const |
bool | operator!= (const DOM_NamedNodeMap &other) const |
bool | operator== (const DOM_NullPtr *p) const |
bool | operator!= (const DOM_NullPtr *p) const |
Set functions. | |
DOM_Node | setNamedItem (DOM_Node arg) |
Get functions. | |
DOM_Node | item (unsigned int index) const |
DOM_Node | getNamedItem (const DOMString &name) const |
unsigned int | getLength () const |
Functions to change the node collection. | |
DOM_Node | removeNamedItem (const DOMString &name) |
Functions introduced in DOM Level 2. | |
DOM_Node | getNamedItemNS (const DOMString &namespaceURI, const DOMString &localName) |
DOM_Node | setNamedItemNS (DOM_Node arg) |
DOM_Node | removeNamedItemNS (const DOMString &namespaceURI, const DOMString &localName) |
Protected Methods | |
DOM_NamedNodeMap (NamedNodeMapImpl *impl) | |
DOM_NamedNodeMap (NodeImpl *impl) | |
Friends | |
class | DOM_DocumentType |
class | DOM_Node |
NamedNodeMap
s are used to represent collections of nodes that can be accessed by name.
Note that NamedNodeMap
does not inherit from NodeList
; NamedNodeMap
s are not maintained in any particular order. Nodes contained in a NamedNodeMap
may also be accessed by an ordinal index, but this is simply to allow convenient enumeration of the contents, and does not imply that the DOM specifies an order to these Nodes.
|
Default constructor for DOM_NamedNodeMap. The resulting object does not refer to an actual DOM_NamedNodeMap node; it will compare == to 0, and is similar to a null object reference variable in Java. NamedNopes are instantiated by these methods: DOM_Node::getAttributes, DOM_DocumentType::getEntities andDOM_DocumentType::getNotations |
|
Copy constructor. Creates a new
|
|
Destructor for DOM_NamedNodeMap. The object being destroyed is the reference object, not the underlying NamedNodeMap itself. Like most other DOM types in this implementation, memory management of named node maps is automatic. Instances of DOM_NamedNodeMap function as references to an underlying heap based implementation object, and should never be explicitly new-ed or deleted in application code, but should appear only as local variables or function parameters. |
|
The number of nodes in the map.
The range of valid child node indices is 0 to |
|
Retrieves a node specified by name.
|
|
Retrieves a node specified by local name and namespace URI.
|
|
Returns the
If
|
|
Use this comparison operator to test whether a Named Node Map reference is not null.
|
|
Test whether this NamedNodeMap reference refers to a different underlying named node map as the other reference object. This does not compare the contents of two different objects.
|
|
Assignment operator.
|
|
Assignment operator.
|
|
Use this comparison operator to test whether a Named Node Map reference is null.
|
|
Test whether this NamedNodeMap reference refers to the same underlying named node map as the other reference object. This does not compare the contents of two different objects.
|
|
Removes a node specified by name.
If the removed node is an
|
|
Removes a node specified by local name and namespace URI.
|
|
Adds a node using its
|
|
Adds a node using its
|