首页 / common / ICompatibility

ICompatibility

模块: oapy._oa._common 导入: from oapy._oa import _common

概览

ICompatibilityoapy 中可用,可通过 _common 模块访问。

本页汇总 ICompatibility 当前在 oapy 中可用的 Python 接口。

详细说明

This interface class lets a plug-in verify whether or not a version of OpenAccess is compatible with the plug-in。 OpenAccess runs a query to determine if a plug-in has implemented this interface。 If implemented, OpenAccess calls the validate function implemented by the plug-in client (the application)。 Refer to Compatibility for OpenAccess Applications and Data for information about OpenAccess API compatibility and feature- based compatibility。

方法总览

状态 Python 调用
obj.validate()
_common.ICompatibility.getId()

方法说明

obj.validate()

绑定状态: 已绑定

Python 调用: obj.validate()

This function validates whether or not this version of OpenAccess is compatible with the plug-in。 If it is compatible, true is returned。 Otherwise, the validate function might: Return False。 OpenAccess throws a generic IPlugInException error about incompatibility between OpenAccess and the plug-in。 Throw an IException error that encapsulates the oacInvalidAPIRev error message and provides information about the expected API major and minor revision numbers。 Refer to Compatibility for OpenAccess Applications and Data for more information。

Python 示例

from oapy._oa import _common

# assume obj is a ICompatibility
obj.validate()

_common.ICompatibility.getId()

绑定状态: 已绑定

Python 调用: _common.ICompatibility.getId()

This function returns a 128-bit ID value that is used to uniquely identify interfaces in the OpenAccess plug-in system。 从 IBase 重新实现。

Python 示例

from oapy._oa import _common

_common.ICompatibility.getId()