Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

skTextNode Class Reference

This class represents a text node. More...

#include <skTextNode.h>

Inheritance diagram for skTextNode:

skNode skCDataNode List of all members.

Public Member Functions

IMPORT_C skTextNode (const skString &text)
 Contructs a new text node with the given text.

virtual IMPORT_C ~skTextNode ()
 Virtual destructor.

virtual IMPORT_C skString getNodeValue () const
 returns the text within the text node

virtual IMPORT_C void setNodeValue (const skString &s)
 sets the text in this node

virtual IMPORT_C NodeType getNodeType () const
 this returns the type of this node

virtual IMPORT_C skNodeclone ()
 this method returns a new skTextNode that has the same text value as this one

virtual IMPORT_C void write (skOutputDestination &out) const
 writes the text in this node to the given destination

virtual IMPORT_C skString toString () const
 writes the text in this node to a string

virtual IMPORT_C bool equals (const skNode &other) const
 Does a deep comparison against another node.


Protected Attributes

skString m_Text
 this member variable holds the text for this node


Detailed Description

This class represents a text node.

This holds the text within or between two elements in an XML document


Constructor & Destructor Documentation

IMPORT_C skTextNode::skTextNode const skString text  ) 
 

Contructs a new text node with the given text.

Parameters:
text - the text to use as the node's value


Member Function Documentation

virtual IMPORT_C skNode* skTextNode::clone  )  [virtual]
 

this method returns a new skTextNode that has the same text value as this one

Returns:
a new copy of this node
Exceptions:
Symbian - a leaving function

Implements skNode.

Reimplemented in skCDataNode.

virtual IMPORT_C NodeType skTextNode::getNodeType  )  const [virtual]
 

this returns the type of this node

Returns:
returns TEXT_NODE

Implements skNode.

Reimplemented in skCDataNode.

virtual IMPORT_C skString skTextNode::getNodeValue  )  const [virtual]
 

returns the text within the text node

Returns:
the text for this node

Reimplemented from skNode.

virtual IMPORT_C void skTextNode::setNodeValue const skString s  )  [virtual]
 

sets the text in this node

Parameters:
s - the new text for this node

Reimplemented from skNode.

virtual IMPORT_C skString skTextNode::toString  )  const [virtual]
 

writes the text in this node to a string

Returns:
the string containing the text
Exceptions:
Symbian - a leaving function

Implements skNode.

virtual IMPORT_C void skTextNode::write skOutputDestination out  )  const [virtual]
 

writes the text in this node to the given destination

Parameters:
out - the destination to write to
Exceptions:
Symbian - a leaving function

Implements skNode.

Reimplemented in skCDataNode.


The documentation for this class was generated from the following file:
Generated on Fri Dec 17 20:28:27 2004 for Simkin C++ for Symbian by doxygen1.3