QDomEntityReference Class

QDomEntityReference クラスは、XML エンティティ参照を表します。詳細...

ヘッダー #include <QDomEntityReference>
CMake: find_package(Qt6 REQUIRED COMPONENTS Xml)
target_link_libraries(mytarget PRIVATE Qt6::Xml)
qmake: QT += xml
継承: QDomNode

注釈このクラスの関数はすべてリエントラントです。

パブリック関数

QDomEntityReference()
QDomEntityReference(const QDomEntityReference &entityReference)
QDomNode::NodeType nodeType() const
QDomEntityReference &operator=(const QDomEntityReference &other)

詳細説明

QDomEntityReference オブジェクトは、ソース・ドキュメントにエンティティ参照がある場合、またはユーザーがエンティティ参照を挿入したい場合に、DOM ツリーに挿入することができます。

文字参照および事前定義された実体への参照は、XML プロセッサによって展開され、文字は実体参照ではなく Unicode 等価物によって表現されることに注意してください。

さらに、XML プロセッサは、QDomEntityReference オブジェクトを提供する代わりに、DOM ツリーを構築する際にエンティティへの参照を完全に展開する場合があります。

このようなオブジェクトを提供する場合、指定された実体参照ノードに対して、参照される実体を表す実体ノードが存在しないことがあります。実体ノードと同様、実体参照の子孫はすべて読み取り専用です。

ドキュメント・オブジェクト・モデルの詳細については、「レベル 1 コア」および「レベル 2 コア」を参照してください。DOM 実装のより一般的な紹介については、QDomDocument ドキュメントを参照してください。

メンバ関数のドキュメント

QDomEntityReference::QDomEntityReference()

空の実体参照を構築します。内容を持つ実体参照を作成するには、QDomDocument::createEntityReference() を使用します。

QDomEntityReference::QDomEntityReference(const QDomEntityReference &entityReference)

entityReference のコピーを構築する。

コピーのデータは共有されます(シャローコピー):一方のノードを変更すると、もう一方のノードも変更されます。深いコピーを作成したい場合は、cloneNode() を使用します。

QDomNode::NodeType QDomEntityReference::nodeType() const

EntityReference を返す。

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

このエンティティ参照に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.