CopperSpice API
1.9.2
|
The QDomEntity class represents an XML entity. More...
Public Methods | |
QDomEntity () | |
QDomEntity (const QDomEntity &other) | |
QDomNode::NodeType | nodeType () const |
QString | notationName () const |
QDomEntity & | operator= (const QDomEntity &other) |
QString | publicId () const |
QString | systemId () const |
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 | QDomNode |
Additional Inherited Members | |
Public Types inherited from QDomNode | |
enum | EncodingPolicy |
enum | NodeType |
Related Functions inherited from QDomNode | |
QTextStream & | operator<< (QTextStream &str, const QDomNode &node) |
The QDomEntity class represents an XML entity.
This class represents an entity in an XML document, either parsed or unparsed. Note that this models the entity itself not the entity declaration.
DOM does not support editing entity nodes; if a user wants to make changes to the contents of an entity, every related QDomEntityReference node must be replaced in the DOM tree by a clone of the entity's contents, and then the desired changes must be made to each of the clones instead. All the descendants of an entity node are read-only.
An entity node does not have any parent.
You can access the entity's publicId(), systemId() and notationName() when available.
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.
QDomEntity::QDomEntity | ( | ) |
Constructs an empty entity.
QDomEntity::QDomEntity | ( | const QDomEntity & | other | ) |
Copy constructs a new QDomEntity from other.
|
inline |
Returns EntityNode
.
QString QDomEntity::notationName | ( | ) | const |
For unparsed entities this function returns the name of the notation for the entity. For parsed entities this function returns an empty string.
QDomEntity & QDomEntity::operator= | ( | const QDomEntity & | other | ) |
Copy assigns from other and returns a reference to this object.
QString QDomEntity::publicId | ( | ) | const |
Returns the public identifier associated with this entity. If the public identifier was not specified an empty string is returned.
QString QDomEntity::systemId | ( | ) | const |
Returns the system identifier associated with this entity. If the system identifier was not specified an empty string is returned.