CopperSpice API  1.7.2
QDomText Class Reference

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

Inheritance diagram for QDomText:
QDomCharacterData QDomNode QDomCDATASection

Public Methods

 QDomText ()
 
 QDomText (const QDomText &other)
 
QDomNode::NodeType nodeType () const
 
QDomText & operator= (const QDomText &other)
 
QDomText splitText (int offset)
 
- Public Methods inherited from QDomCharacterData
 QDomCharacterData ()
 
 QDomCharacterData (const QDomCharacterData &other)
 
void appendData (const QString &arg)
 
QString data () const
 
void deleteData (unsigned long offset, unsigned long count)
 
void insertData (unsigned long offset, const QString &arg)
 
int length () const
 
QDomNode::NodeType nodeType () const
 
QDomCharacterData & operator= (const QDomCharacterData &other)
 
void replaceData (unsigned long offset, unsigned long count, const QString &arg)
 
void setData (const QString &data)
 
QString substringData (unsigned long offset, unsigned long count)
 
- Public Methods inherited from QDomNode
 QDomNode ()
 
 QDomNode (const QDomNode &other)
 
 ~QDomNode ()
 
QDomNode appendChild (const QDomNode &newChild)
 
QDomNamedNodeMap attributes () const
 
QDomNodeList childNodes () const
 
void clear ()
 
QDomNode cloneNode (bool deep=true) const
 
int columnNumber () const
 
QDomNode firstChild () const
 
QDomElement firstChildElement (const QString &tagName=QString ()) const
 
bool hasAttributes () const
 
bool hasChildNodes () const
 
QDomNode insertAfter (const QDomNode &newChild, const QDomNode &refChild)
 
QDomNode insertBefore (const QDomNode &newChild, const QDomNode &refChild)
 
bool isAttr () const
 
bool isCDATASection () const
 
bool isCharacterData () const
 
bool isComment () const
 
bool isDocument () const
 
bool isDocumentFragment () const
 
bool isDocumentType () const
 
bool isElement () const
 
bool isEntity () const
 
bool isEntityReference () const
 
bool isNotation () const
 
bool isNull () const
 
bool isProcessingInstruction () const
 
bool isSupported (const QString &feature, const QString &version) const
 
bool isText () const
 
QDomNode lastChild () const
 
QDomElement lastChildElement (const QString &tagName=QString ()) const
 
int lineNumber () const
 
QString localName () const
 
QDomNode namedItem (const QString &name) const
 
QString namespaceURI () const
 
QDomNode nextSibling () const
 
QDomElement nextSiblingElement (const QString &tagName=QString ()) const
 
QString nodeName () const
 
NodeType nodeType () const
 
QString nodeValue () const
 
void normalize ()
 
bool operator!= (const QDomNode &n) const
 
QDomNode & operator= (const QDomNode &other)
 
bool operator== (const QDomNode &n) const
 
QDomDocument ownerDocument () const
 
QDomNode parentNode () const
 
QString prefix () const
 
QDomNode previousSibling () const
 
QDomElement previousSiblingElement (const QString &tagName=QString ()) const
 
QDomNode removeChild (const QDomNode &oldChild)
 
QDomNode replaceChild (const QDomNode &newChild, const QDomNode &oldChild)
 
void save (QTextStream &stream, int indent, QDomNode::EncodingPolicy policy=QDomNode::EncodingFromDocument) const
 
void setNodeValue (const QString &value)
 
void setPrefix (const QString &prefix)
 
QDomAttr toAttr () const
 
QDomCDATASection toCDATASection () const
 
QDomCharacterData toCharacterData () const
 
QDomComment toComment () const
 
QDomDocument toDocument () const
 
QDomDocumentFragment toDocumentFragment () const
 
QDomDocumentType toDocumentType () const
 
QDomElement toElement () const
 
QDomEntity toEntity () const
 
QDomEntityReference toEntityReference () const
 
QDomNotation toNotation () const
 
QDomProcessingInstruction toProcessingInstruction () const
 
QDomText toText () const
 

Friends

class QDomCDATASection
 
class QDomDocument
 
class QDomNode
 

Additional Inherited Members

- Public Types inherited from QDomNode
enum  EncodingPolicy
 
enum  NodeType
 

Detailed Description

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

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

For further information about the Document Object Model see Level 1 and Level 2 Core. For a more general introduction of the DOM implementation see the QDomDocument documentation.

See also
QDomNode::normalize()

Constructor & Destructor Documentation

QDomText::QDomText ( )

Constructs an empty QDomText object.

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

QDomText::QDomText ( const QDomText &  other)

Copy constructs a new QDomText from other.

Method Documentation

QDomNode::NodeType QDomText::nodeType ( ) const
inline

Returns TextNode.

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

Copy assigns from other and returns a reference to this object.

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.

See also
QDomNode::normalize()