QDomEntity Class
QDomEntity クラスは、XML エンティティを表します。詳細...
ヘッダー: | #include <QDomEntity> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Xml) target_link_libraries(mytarget PRIVATE Qt6::Xml) |
qmake: | QT += xml |
継承: | QDomNode |
- 継承されたメンバを含む、すべてのメンバのリスト
- QDomEntity はXML クラスに属しています。
注釈このクラスの関数はすべてリエントラントです。
パブリック関数
QDomEntity() | |
QDomEntity(const QDomEntity &entity) | |
QDomNode::NodeType | nodeType() const |
QString | notationName() const |
QString | publicId() const |
QString | systemId() const |
QDomEntity & | operator=(const QDomEntity &other) |
詳細説明
このクラスは、解析済みまたは未解析の XML ドキュメント内のエンティティを表します。これは、実体宣言ではなく、実体そのものをモデル化していることに注意してください。
DOM はエンティティノードの編集をサポートしていません。ユーザーがエンティティの内容を変更したい場合は、関連するQDomEntityReference ノードをすべて DOM ツリー内でエンティティの内容のクローンに置き換える必要があります。エンティティ・ノードの子孫はすべて読み取り専用です。
エンティティ・ノードには親はありません。
利用可能な場合は、エンティティのpublicId ()、systemId ()、notationName ()にアクセスできます。
ドキュメント・オブジェクト・モデルの詳細については、「レベル1 コア」と「レベル2コア」を参照してください。DOM 実装のより一般的な紹介については、QDomDocument ドキュメントを参照してください。
メンバ関数のドキュメント
QDomEntity::QDomEntity()
空のエンティティを構築します。
QDomEntity::QDomEntity(const QDomEntity &entity)
entity のコピーを構築する。
コピーのデータは共有されます(シャローコピー):一方のノードを変更すると、もう一方のノードも変更されます。深いコピーを作成したい場合は、cloneNode() を使用します。
QDomNode::NodeType QDomEntity::nodeType() const
EntityNode
を返す。
QString QDomEntity::notationName() const
解析されていないエンティティの場合、この関数はエンティティの表記名を返す。解析済みエンティティの場合、この関数は空文字列を返す。
QString QDomEntity::publicId() const
このエンティティに関連付けられた公開識別子を返します。公開識別子が指定されていない場合は、空の文字列が返されます。
QString QDomEntity::systemId() const
このエンティティに関連付けられたシステム識別子を返します。システム識別子が指定されなかった場合は、空の文字列が返されます。
QDomEntity &QDomEntity::operator=(const QDomEntity &other)
この DOM エンティティーにother を割り当てます。
コピーのデータは共有されます(シャローコピー):一方のノードを変更すると、もう一方のノードも変更されます。ディープコピーを作成したい場合は、cloneNode() を使用してください。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.