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

skTextNode Class Reference

This class represents a text node. More...

#include <skNode.h>

Inheritance diagram for skTextNode:

skNode skCDataNode List of all members.

Public Methods

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

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

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

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

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

virtual void write (ostream& out) const
 writes the text in this node to the given stream. More...


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

Reimplemented from skNode.

Reimplemented in skCDataNode.

NodeType skTextNode::getNodeType ( ) const [virtual]
 

this returns the type of this node.

Returns:
returns TEXT_NODE

Reimplemented from skNode.

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.

void skTextNode::write ( ostream & out ) const [virtual]
 

writes the text in this node to the given stream.

Parameters:
out   - the stream to write to

Reimplemented from skNode.


The documentation for this class was generated from the following files:
Generated at Mon Nov 5 19:22:26 2001 for Simkin by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000