首页 / base / sr1to1Relationship

sr1to1Relationship

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

概览

sr1to1Relationshipoapy 中可用,可通过 _base 模块访问。

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

详细说明

The sr1to1Relationship class captures a specific 1-to-1 relationship。 The relationship uses srObjectRefs to store the references to the specific objects in the 1-to-1 relationship。

构造函数

_base.sr1to1Relationship(def, from, to)

obj = _base.sr1to1Relationship(def, from, to)

方法总览

状态 Python 调用
obj.accept(visitor)
obj.getTo()
obj.setTo(object)

方法说明

obj.accept(visitor)

绑定状态: 已绑定

Python 调用: obj.accept(visitor)

This function is responsible for calling the correct visitor。 实现 srBase。

参数

  • visitor: The visitor to call。

Python 示例

from oapy._oa import _base

# assume obj is a sr1to1Relationship
obj.accept(visitor)

obj.getTo()

绑定状态: 已绑定

Python 调用: obj.getTo()

This function is the accessor to get the to object in the relationship。

Python 示例

from oapy._oa import _base

# assume obj is a sr1to1Relationship
obj.getTo()

obj.setTo(object)

绑定状态: 已绑定

Python 调用: obj.setTo(object)

This function sets the to value of the relationship。

参数

  • object: A smart pointer to the object to be the to object in the relationship。

Python 示例

from oapy._oa import _base

# assume obj is a sr1to1Relationship
obj.setTo(object)