QDomDocumentType Class
QDomDocumentTypeクラスは、ドキュメントツリーにおけるDTDの表現である。詳細...
ヘッダー | #include <QDomDocumentType> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Xml) target_link_libraries(mytarget PRIVATE Qt6::Xml) |
qmake: | QT += xml |
継承: | QDomNode |
- 継承メンバを含む全メンバのリスト
- QDomDocumentType はXML Classes に含まれる。
注意:このクラスの関数はすべてリエントラントです。
パブリック関数
QDomDocumentType() | |
QDomDocumentType(const QDomDocumentType &documentType) | |
QDomNamedNodeMap | entities() const |
QString | internalSubset() const |
QString | name() const |
QDomNode::NodeType | nodeType() const |
QDomNamedNodeMap | notations() const |
QString | publicId() const |
QString | systemId() const |
QDomDocumentType & | operator=(const QDomDocumentType &other) |
詳細説明
QDomDocumentType クラスは、DTD 内のいくつかのデータ構造への読み取り専用アクセスを許可する。entities() とnotations() のすべてのマップを返すことができる。さらに、name ()関数は、<!DOCTYPE name>タグで指定された文書タイプの名前を返します。このクラスは、publicId()、systemId()、internalSubset() 関数も提供します。
QDomDocumentも参照してください 。
メンバ関数のドキュメント
QDomDocumentType::QDomDocumentType()
空の QDomDocumentType オブジェクトを作成します。
QDomDocumentType::QDomDocumentType(const QDomDocumentType &documentType)
documentType のコピーを構築する。
コピーのデータは共有されます(シャローコピー):一方のノードを変更すると、もう一方のノードも変更されます。深いコピーを作成したい場合は、cloneNode() を使用します。
QDomNamedNodeMap QDomDocumentType::entities() const
DTD に記述されているすべてのエンティティのマップを返す。
QString QDomDocumentType::internalSubset() const
ドキュメント型の内部サブセットを返すか、内部サブセットがない場合は空文字列を返します。
publicId() およびsystemId()も参照してください 。
QString QDomDocumentType::name() const
DOCTYPE名>タグで指定されたドキュメントタイプの名前を返します。
nodeName()も参照してください 。
QDomNode::NodeType QDomDocumentType::nodeType() const
DocumentTypeNode
を返す。
isDocumentType() およびQDomNode::toDocumentType()も参照のこと 。
QDomNamedNodeMap QDomDocumentType::notations() const
DTDに記述されているすべての記法のマップを返します。
QString QDomDocumentType::publicId() const
外部 DTD サブセットの公開識別子、または公開識別子がない場合は空文字列を返します。
systemId()、internalSubset() およびQDomImplementation::createDocumentType()も参照してください 。
QString QDomDocumentType::systemId() const
外部 DTD サブセットのシステム識別子、またはシステム識別子がない場合は空文字列を返します。
publicId()、internalSubset() およびQDomImplementation::createDocumentType()も参照 。
QDomDocumentType &QDomDocumentType::operator=(const QDomDocumentType &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.