PySide6.QtCore.QXmlStreamNotationDeclaration

class QXmlStreamNotationDeclaration

QXmlStreamNotationDeclaration 类表示一个 DTD 符号声明。更多

概要

方法

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

一个符号声明由name()systemId()publicId()组成。

__init__()

创建一个空的符号声明。

name()
Return type:

字符串

返回符号名称。

__ne__(rhs)
Parameters:

rhsQXmlStreamNotationDeclaration

Return type:

布尔

比较lhs符号声明与rhs,如果它们不相等则返回true;否则返回false

__eq__(rhs)
Parameters:

rhsQXmlStreamNotationDeclaration

Return type:

布尔

比较 lhs 符号声明与 rhs,如果它们相等则返回 true;否则返回 false

publicId()
Return type:

字符串

返回公共标识符。

systemId()
Return type:

字符串

返回系统标识符。