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

The QDomText class represents text data in the parsed XML document.XMLYou can split the text in a QDomText object over two QDomText objecs with splitText(). Más...

#include <qdom.h>

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

Lista de todos los miembros.

Métodos públicos

 QDomText ()
 QDomText (const QDomText &x)
QDomTextoperator= (const QDomText &)
 ~QDomText ()
QDomText splitText (int offset)
QDomNode::NodeType nodeType () const
bool isText () const
 QDomText ()
 QDomText (const QDomText &x)
QDomTextoperator= (const QDomText &)
 ~QDomText ()
QDomText splitText (int offset)
QDomNode::NodeType nodeType () const
bool isText () const

Amigas

class QDomCDATASection
class QDomDocument
class QDomNode

Descripción detallada

The QDomText class represents text data in the parsed XML document.

XML

You can split the text in a QDomText object over two QDomText objecs with splitText().

For further information about the Document Object Model see http://www.w3.org/TR/REC-DOM-Level-1/ and http://www.w3.org/TR/DOM-Level-2-Core/. For a more general introduction of the DOM implementation see the QDomDocument documentation.


Documentación del constructor y destructor

QDomText::QDomText ( )

Constructs an empty QDomText object.

To construct a QDomText with content, use QDomDocument::createTextNode().

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

QDomText::~QDomText ( )

Destroys the object and frees its resources.

QDomText::QDomText ( )
QDomText::QDomText ( const QDomText x)
QDomText::~QDomText ( )

Documentación de las funciones miembro

bool QDomText::isText ( ) const [virtual]

Returns TRUE.

Reimplementado de QDomNode.

bool QDomText::isText ( ) const [virtual]

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

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

Ver también:
toText()

Reimplementado de QDomNode.

QDomNode::NodeType QDomText::nodeType ( ) const [virtual]

Returns TextNode.

Reimplementado de QDomCharacterData.

Reimplementado en QDomCDATASection y QDomCDATASection.

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

Reimplementado en QDomCDATASection y QDomCDATASection.

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

Assigns x to this DOM text.

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

QDomText QDomText::splitText ( int  offset)
QDomText QDomText::splitText ( int  offset)

Splits this DOM text object into two QDomText objects. This object keeps its first offset characters and the second (newly created) object is inserted into the document tree after this object with the remaining characters.

The function returns the newly created object.

Ver también:
QDomNode::normalize()

Documentación de las funciones relacionadas y clases amigas

QDomCDATASection [friend]
QDomDocument [friend]

Reimplementado de QDomCharacterData.

Reimplementado en QDomCDATASection.

QDomNode [friend]

Reimplementado de QDomCharacterData.

Reimplementado en QDomCDATASection.


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'