PySide6.QtCore.QXmlStreamEntityDeclaration

class QXmlStreamEntityDeclaration

QXmlStreamEntityDeclaration 类表示一个 DTD 实体声明。更多

概要

方法

注意

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

详细描述

实体声明由name()notationName()systemId()publicId()value()组成。

__init__()

创建一个空的实体声明。

name()
Return type:

字符串

返回实体名称。

notationName()
Return type:

字符串

返回符号名称。

__ne__(rhs)
Parameters:

rhsQXmlStreamEntityDeclaration

Return type:

布尔

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

__eq__(rhs)
Parameters:

rhsQXmlStreamEntityDeclaration

Return type:

布尔

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

publicId()
Return type:

字符串

返回公共标识符。

systemId()
Return type:

字符串

返回系统标识符。

value()
Return type:

字符串

返回实体的值。