このページでは

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()
QDomEntity(const QDomEntity &entity)
QDomNode::NodeType nodeType() const
QString notationName() const
QString publicId() const
QString systemId() const
QDomEntity &operator=(const QDomEntity &other)

詳細な説明

このクラスは、解析済みまたは未解析の XML ドキュメント内のエンティティを表します。これはエンティティ宣言ではなく、エンティティそのものをモデル化していることに注意してください。

DOM はエンティティノードの編集をサポートしていません。ユーザーがエンティティの内容を変更したい場合は、DOM ツリー内の関連するすべての `QDomEntityReference ` ノードを、そのエンティティの内容のクローンに置き換え、そのクローンそれぞれに対して変更を行う必要があります。エンティティノードの子孫はすべて読み取り専用です。

エンティティノードには親が存在しません。

利用可能な場合、エンティティのpublicId()、systemId()、およびnotationName()にアクセスできます。

Document Object Model(DOM)の詳細については、Level 1およびLevel 2 Core を参照してください。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() を使用してください。

© 2026 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.