QDomCharacterData(3qt)

NAME
QDomCharacterData - Represents a generic string in the DOM

#include <qdom.h>

Inherits QDomNode.

Inherited by QDomComment and QDomText.

  Public Members
QDomCharacterData ()
QDomCharacterData ( const QDomCharacterData & x )
QDomCharacterData& operator= ( const QDomCharacterData & )
~QDomCharacterData ()
virtual QString data () const
virtual void setData ( const QString & )
virtual uint length () const
virtual QString substringData ( unsigned long offset, unsigned long count )
virtual void appendData ( const QString & arg )
virtual void insertData ( unsigned long offset, const QString & arg )
virtual void deleteData ( unsigned long offset, unsigned long count )
virtual void replaceData ( unsigned long offset, unsigned long count, const QString & arg )
virtual QDomNode::NodeType nodeType () const
virtual bool isCharacterData () const

DESCRIPTION
The QDomCharacterData 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 QDomText, QDomComment and QDomCDATASection.

See also QDomText, QDomComment and QDomCDATASection.

MEMBER FUNCTION DOCUMENTATION

QDomCharacterData::QDomCharacterData ()
Constructs an empty character data object.

QDomCharacterData::QDomCharacterData ( const QDomCharacterData & x )
Copy constructor.

The data of the copy is shared: modifying one will also change the other. If you want to make a real copy, use cloneNode() instead.

QDomCharacterData::~QDomCharacterData ()
Destructor.

void QDomCharacterData::appendData ( const QString & arg ) [virtual]
Appends arg to the stored string.

QString QDomCharacterData::data () const [virtual]
Returns the string stored in this object.

If the node is a null node, it will return a null string.

void QDomCharacterData::deleteData ( unsigned long offset, unsigned long count ) [virtual]
Deletes the substring starting at position offset with length count.

void QDomCharacterData::insertData ( unsigned long offset, const QString & arg ) [virtual]
Inserts the string arg at position offset into the stored string.

bool QDomCharacterData::isCharacterData () const [virtual]
Returns TRUE.

Reimplemented from QDomNode.

uint QDomCharacterData::length () const [virtual]
Returns the length of the stored string.

QDomNode::NodeType QDomCharacterData::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 QDomNode.

QDomCharacterData& QDomCharacterData::operator= ( const QDomCharacterData & x )
Assignment operator.

The data of the copy is shared: modifying one will also change the other. If you want to make a real copy, use cloneNode() instead.

void QDomCharacterData::replaceData ( unsigned long offset, unsigned long count, const QString & arg ) [virtual]
Replaces the substring starting at offset with length count with the string arg.

void QDomCharacterData::setData ( const QString & v ) [virtual]
Sets the string of this object to v.

QString QDomCharacterData::substringData ( unsigned long offset, unsigned long count ) [virtual]
Returns the substring from position offset with length count.

SEE ALSO
http://doc.trolltech.com/qdomcharacterdata.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports make our job much simpler. Thank you.

In case of content or formattting problems with this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qdomcharacterdata.3qt) and the Qt version (2.3.7).