TQDomCharacterData Class Reference
[XML module]
The TQDomCharacterData class represents a generic string in the DOM.
More...
All the functions in this class are reentrant when TQt is built with thread support.
#include <ntqdom.h>
Inherits TQDomNode.
Inherited by TQDomText and TQDomComment.
List of all member functions.
Public Members
Detailed Description
The TQDomCharacterData class represents a generic string in the DOM.
Character data as used in XML specifies a generic data string.
More specialized versions of this class are TQDomText, TQDomComment
and TQDomCDATASection.
The data string is set with setData() and retrieved with data().
You can retrieve a portion of the data string using
substringData(). Extra data can be appended with appendData(), or
inserted with insertData(). Portions of the data string can be
deleted with deleteData() or replaced with replaceData(). The
length of the data string is returned by length().
The node type of the node containing this character data is
returned by nodeType().
See also TQDomText, TQDomComment, TQDomCDATASection, and XML.
Member Function Documentation
TQDomCharacterData::TQDomCharacterData ()
Constructs an empty character data object.
TQDomCharacterData::TQDomCharacterData ( const TQDomCharacterData & x )
Constructs a copy of x.
The data of the copy is shared (shallow copy): modifying one node
will also change the other. If you want to make a deep copy, use
cloneNode().
TQDomCharacterData::~TQDomCharacterData ()
Destroys the object and frees its resources.
void TQDomCharacterData::appendData ( const TQString & arg ) [virtual]
Appends the string arg to the stored string.
TQString TQDomCharacterData::data () const [virtual]
Returns the string stored in this object.
If the node is a null node, it will return
TQString::null.
void TQDomCharacterData::deleteData ( unsigned long offset, unsigned long count ) [virtual]
Deletes a substring of length count from position offset.
void TQDomCharacterData::insertData ( unsigned long offset, const TQString & arg ) [virtual]
Inserts the string arg into the stored string at position offset.
bool TQDomCharacterData::isCharacterData () const [virtual]
Returns TRUE.
Reimplemented from TQDomNode.
uint TQDomCharacterData::length () const [virtual]
Returns the length of the stored string.
TQDomNode::NodeType TQDomCharacterData::nodeType () const [virtual]
Returns the type of node this object refers to (i.e. TextNode,
CDATASectionNode, CommentNode or CharacterDataNode). For
a null node CharacterDataNode is
returned.
Reimplemented from TQDomNode.
Reimplemented in TQDomText and TQDomComment.
Assigns x to this character data.
The data of the copy is shared (shallow copy): modifying one node
will also change the other. If you want to make a deep copy, use
cloneNode().
void TQDomCharacterData::replaceData ( unsigned long offset, unsigned long count, const TQString & arg ) [virtual]
Replaces the substring of length count starting at position offset with the string arg.
void TQDomCharacterData::setData ( const TQString & v ) [virtual]
Sets this object's string to v.
TQString TQDomCharacterData::substringData ( unsigned long offset, unsigned long count ) [virtual]
Returns the substring of length count from position offset.
This file is part of the TQt toolkit.
Copyright © 1995-2007
Trolltech. All Rights Reserved.