QDomEntity Class
QDomEntity 클래스는 XML 엔티티를 나타냅니다. 더 보기...
Header: | #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은 엔티티 노드 편집을 지원하지 않으므로 사용자가 엔티티의 내용을 변경하려면 DOM 트리에서 관련된 모든 QDomEntityReference 노드를 엔티티의 내용 복제본으로 대체한 다음 각 복제본에 원하는 변경 사항을 적용해야 합니다. 엔티티 노드의 모든 하위 노드는 읽기 전용입니다.
엔티티 노드에는 부모가 없습니다.
엔티티의 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)
other 을 이 DOM 엔티티에 할당합니다.
복사본의 데이터는 공유됩니다(얕은 복사본): 한 노드를 수정하면 다른 노드도 변경됩니다. 심층 복사본을 만들려면 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.