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

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

virtual ~skTextNode ()
 Virtual destructor.

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

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

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

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

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

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

virtual 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

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

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.

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

this returns the type of this node

Returns:
returns TEXT_NODE

Implements skNode.

Reimplemented in skCDataNode.

skString skTextNode::getNodeValue  )  const [virtual]
 

returns the text within the text node

Returns:
the text for this node

Reimplemented from skNode.

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

sets the text in this node

Parameters:
s - the new text for this node

Reimplemented from skNode.

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.

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 files:
Generated on Fri Dec 17 20:27:35 2004 for Simkin by doxygen1.3