Inheritance diagram for IDOM_Node:
Public Types | |
enum | NodeType { ELEMENT_NODE = 1, ATTRIBUTE_NODE = 2, TEXT_NODE = 3, CDATA_SECTION_NODE = 4, ENTITY_REFERENCE_NODE = 5, ENTITY_NODE = 6, PROCESSING_INSTRUCTION_NODE = 7, COMMENT_NODE = 8, DOCUMENT_NODE = 9, DOCUMENT_TYPE_NODE = 10, DOCUMENT_FRAGMENT_NODE = 11, NOTATION_NODE = 12, XML_DECL_NODE = 13 } |
Public Methods | |
Destructor. | |
virtual | ~IDOM_Node () |
Get functions. | |
virtual const XMLCh * | getNodeName () const=0 |
virtual const XMLCh * | getNodeValue () const=0 |
virtual short | getNodeType () const=0 |
virtual IDOM_Node * | getParentNode () const=0 |
virtual IDOM_NodeList * | getChildNodes () const=0 |
virtual IDOM_Node * | getFirstChild () const=0 |
virtual IDOM_Node * | getLastChild () const=0 |
virtual IDOM_Node * | getPreviousSibling () const=0 |
virtual IDOM_Node * | getNextSibling () const=0 |
virtual IDOM_NamedNodeMap * | getAttributes () const=0 |
virtual IDOM_Document * | getOwnerDocument () const=0 |
Cloning function. | |
virtual IDOM_Node * | cloneNode (bool deep) const=0 |
Functions to modify the DOM Node. | |
virtual IDOM_Node * | insertBefore (IDOM_Node *newChild, IDOM_Node *refChild)=0 |
virtual IDOM_Node * | replaceChild (IDOM_Node *newChild, IDOM_Node *oldChild)=0 |
virtual IDOM_Node * | removeChild (IDOM_Node *oldChild)=0 |
virtual IDOM_Node * | appendChild (IDOM_Node *newChild)=0 |
Query functions. | |
virtual bool | hasChildNodes () const=0 |
Set functions. | |
virtual void | setNodeValue (const XMLCh *nodeValue)=0 |
Functions introduced in DOM Level 2. | |
virtual void | normalize ()=0 |
virtual bool | isSupported (const XMLCh *feature, const XMLCh *version) const=0 |
virtual const XMLCh * | getNamespaceURI () const=0 |
virtual const XMLCh * | getPrefix () const=0 |
virtual const XMLCh * | getLocalName () const=0 |
virtual void | setPrefix (const XMLCh *prefix)=0 |
virtual bool | hasAttributes () const=0 |
Protected Methods | |
Constructors and assignment operators | |
IDOM_Node () | |
IDOM_Node (const IDOM_Node &other) | |
IDOM_Node & | operator= (const IDOM_Node &other) |
Node
interface is the primary datatype for the entire Document Object Model.
It represents a single node in the document tree. While all objects implementing the Node
interface expose methods for dealing with children, not all objects implementing the Node
interface may have children. For example, Text
nodes may not have children, and adding children to such nodes results in a DOMException
being raised.
The attributes nodeName
, nodeValue
and attributes
are included as a mechanism to get at node information without casting down to the specific derived interface. In cases where there is no obvious mapping of these attributes for a specific nodeType
(e.g., nodeValue
for an Element or attributes
for a Comment), this returns null
. Note that the specialized interfaces may contain additional and more convenient mechanisms to get and set the relevant information.
|
Default constructor for IDOM_Node. Protected, because IDOM_Node is an abstract base class. |
|
Copy constructor.
|
|
Destructor for IDOM_Node. |
|
Adds the node
If the
|
|
Returns a duplicate of this node. This function serves as a generic copy constructor for nodes.
The duplicate node has no parent (
|
|
Gets a |
|
Gets a
If there are no children, this is a |
|
Gets the first child of this node.
If there is no such node, this returns |
|
Gets the last child of this node.
If there is no such node, this returns |
|
Returns the local part of the qualified name of this node.
For nodes created with a DOM Level 1 method, such as |
|
Get the namespace URI of this node, or This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time.
For nodes of any type other than |
|
Gets the node immediately following this node.
If there is no such node, this returns |
|
The name of this node, depending on its type; see the table above. |
|
An enum value representing the type of the underlying object. |
|
Gets the value of this node, depending on its type.
|
|
Gets the
This is also the |
|
Gets the parent of this node.
All nodes, except |
|
Get the namespace prefix of this node, or |
|
Gets the node immediately preceding this node.
If there is no such node, this returns |
|
Returns whether this node (if it is an element) has any attributes.
|
|
This is a convenience method to allow easy determination of whether a node has any children.
|
|
Inserts the node
If
|
|
Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.
|
|
Puts all
Note: In cases where the document contains |
|
Assignment operator.
|
|
Removes the child node indicated by
|
|
Replaces the child node
If
If the
|
|
Sets the value of the node. Any node which can have a nodeValue (
|
|
Set the namespace prefix of this node.
Note that setting this attribute, when permitted, changes the
Note also that changing the prefix of an attribute, that is known to have a default value, does not make a new attribute with the default value and the original prefix appear, since the
|