Eneboo - Documentación para desarrolladores
Métodos públicos | Amigas
Referencia de la Clase QDomCharacterData

The QDomCharacterData class represents a generic string in the DOM.XMLCharacter data as used in XML specifies a generic data string. More specialized versions of this class are QDomText, QDomComment and QDomCDATASection. Más...

#include <qdom.h>

Diagrama de herencias de QDomCharacterData
QDomNode QDomNode QDomComment QDomComment QDomText QDomText QDomCDATASection QDomCDATASection QDomCDATASection QDomCDATASection

Lista de todos los miembros.

Métodos públicos

 QDomCharacterData ()
 QDomCharacterData (const QDomCharacterData &x)
QDomCharacterDataoperator= (const QDomCharacterData &)
 ~QDomCharacterData ()
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 uint length () const
virtual QString data () const
virtual void setData (const QString &)
QDomNode::NodeType nodeType () const
bool isCharacterData () const
 QDomCharacterData ()
 QDomCharacterData (const QDomCharacterData &x)
QDomCharacterDataoperator= (const QDomCharacterData &)
 ~QDomCharacterData ()
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 uint length () const
virtual QString data () const
virtual void setData (const QString &)
QDomNode::NodeType nodeType () const
bool isCharacterData () const

Amigas

class QDomDocument
class QDomText
class QDomComment
class QDomNode

Descripción detallada

The QDomCharacterData class represents a generic string in the DOM.

XML

Character data as used in XML specifies a generic data string. More specialized versions of this class are QDomText, QDomComment and QDomCDATASection.

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().

Ver también:
QDomText QDomComment QDomCDATASection

Documentación del constructor y destructor

QDomCharacterData::QDomCharacterData ( )

Constructs an empty character data object.

QDomCharacterData::QDomCharacterData ( const QDomCharacterData 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().

QDomCharacterData::~QDomCharacterData ( )

Destroys the object and frees its resources.

QDomCharacterData::QDomCharacterData ( )
QDomCharacterData::QDomCharacterData ( const QDomCharacterData x)
QDomCharacterData::~QDomCharacterData ( )

Documentación de las funciones miembro

void QDomCharacterData::appendData ( const QString arg) [virtual]

Appends the string arg to the stored string.

virtual void QDomCharacterData::appendData ( const QString arg) [virtual]
QString QDomCharacterData::data ( ) const [virtual]

Returns the string stored in this object.

If the node is a null node, it will return QString::null.

virtual QString QDomCharacterData::data ( ) const [virtual]
virtual void QDomCharacterData::deleteData ( unsigned long  offset,
unsigned long  count 
) [virtual]
void QDomCharacterData::deleteData ( unsigned long  offset,
unsigned long  count 
) [virtual]

Deletes a substring of length count from position offset.

void QDomCharacterData::insertData ( unsigned long  offset,
const QString arg 
) [virtual]

Inserts the string arg into the stored string at position offset.

virtual void QDomCharacterData::insertData ( unsigned long  offset,
const QString arg 
) [virtual]
bool QDomCharacterData::isCharacterData ( ) const [virtual]

Returns TRUE.

Reimplementado de QDomNode.

bool QDomCharacterData::isCharacterData ( ) const [virtual]

Returns TRUE if the node is a character data node; otherwise returns FALSE.

If this function returns TRUE, it does not imply that this object is a QDomCharacterData; you can get the QDomCharacterData with toCharacterData().

Ver también:
toCharacterData()

Reimplementado de QDomNode.

virtual uint QDomCharacterData::length ( ) const [virtual]
uint QDomCharacterData::length ( void  ) const [virtual]

Returns the length of the stored string.

QDomNode::NodeType QDomCharacterData::nodeType ( ) const [virtual]
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.

Reimplementado de QDomNode.

Reimplementado en QDomText, QDomComment, QDomCDATASection, QDomText, QDomComment y QDomCDATASection.

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

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().

virtual void QDomCharacterData::replaceData ( unsigned long  offset,
unsigned long  count,
const QString arg 
) [virtual]
void QDomCharacterData::replaceData ( unsigned long  offset,
unsigned long  count,
const QString arg 
) [virtual]

Replaces the substring of length count starting at position offset with the string arg.

void QDomCharacterData::setData ( const QString v) [virtual]

Sets this object's string to v.

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

Returns the substring of length count from position offset.

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

Documentación de las funciones relacionadas y clases amigas

QDomComment [friend]
QDomDocument [friend]

Reimplementado de QDomNode.

Reimplementado en QDomText, QDomComment y QDomCDATASection.

QDomNode [friend]

Reimplementado en QDomText, QDomComment y QDomCDATASection.

QDomText [friend]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'