HomeHome

ClassesAnnotated - TreeFunctionsHomeStructure

QDomCharacterData Class Reference
[ XML module ]


The QDomCharacterData class represents a generic string in the DOM. More...

#include <qdom.h>

Inherits QDomNode.

Inherited by QDomComment and QDomText.

List of all member functions.

Public Members


Detailed Description

The QDomCharacterData class represents a generic string in the DOM.

CharacterData 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 a null character data object.

QDomCharacterData::QDomCharacterData ( const QDomCharacterData & x )

Copy constructor.

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. For a null node QDomNode::CharacterDataNode is returned.

Reimplemented from QDomNode.

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

Assignment operator.

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]

set the string stored in this object to v.

QString QDomCharacterData::substringData ( unsigned long offset, unsigned long count ) [virtual]

Returns the substring from position offset with length count.


Search the documentation, FAQ, qt-interest archive and more (uses www.trolltech.com):


This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.


Copyright İ 2000 TrolltechTrademarks
Qt version 2.2.0-beta2