首页 / cms / oaCMProtocolArray

oaCMProtocolArray

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

概览

oaCMProtocolArrayoapy 中可用,可通过 _cms 模块访问。

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

详细说明

An oaCMProtocolArray is an array of oaCMProtocols。 A oaCMProtocolArray generally represents the array of oaCMProtocols supported by a plug-in and available for selection by an application。

构造函数

_cms.oaCMProtocolArray(sizeIn=0)

obj = _cms.oaCMProtocolArray(sizeIn=0)

_cms.oaCMProtocolArray(arrayIn)

obj = _cms.oaCMProtocolArray(arrayIn)

方法总览

状态 Python 调用
obj.findByName(nameIn, plugInNameIn)
obj.validate(protoIn)
obj.operator=(rhs)

方法说明

obj.findByName(nameIn, plugInNameIn)

绑定状态: 已绑定

Python 调用: obj.findByName(nameIn, plugInNameIn)

This function returns the index of the protocol with the matching nameIn and plugInNameIn。 If a matching protocol is not found, oacNullIndex is returned。

参数

  • nameIn: The protocol name to find。
  • plugInNameIn: The plug-in name to find。

Python 示例

from oapy._oa import _cms

# assume obj is a oaCMProtocolArray
obj.findByName(nameIn, plugInNameIn)

obj.validate(protoIn)

绑定状态: 已绑定

Python 调用: obj.validate(protoIn)

This function checks whether the specified protoIn matches a protocol in this array。 A match occurs if all fixed attributes in an array protocol match those in protoIn and all modifiable attributes in that array protocol have the same names and values as protoIn。

参数

  • protoIn: The protocol to match in this array。

Python 示例

from oapy._oa import _cms

# assume obj is a oaCMProtocolArray
obj.validate(protoIn)

obj.operator=(rhs)

绑定状态: 已绑定

Python 调用: obj.operator=(rhs)

Python 示例

from oapy._oa import _cms

# assume obj is a oaCMProtocolArray
obj.operator=(rhs)