首页 / cms / oaConvertObjectChangeRec

oaConvertObjectChangeRec

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

概览

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

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

详细说明

The oaConvertObjectChangeRec class represents change records created when an object of one type is converted into another type。 变更记录由 OpenAccess 变更管理系统(CMS)使用。

构造函数

_cms.oaConvertObjectChangeRec(changeSetIn, objRef, convObjRef)

obj = _cms.oaConvertObjectChangeRec(changeSetIn, objRef, convObjRef)

方法总览

状态 Python 调用
obj.getConvertedToObject()
obj.setConvertedToObject(convObjRef, convObjState)
obj.getObjectStateEntry()
obj.accept(visitor, forward=true)
obj.isConvertObjectChangeRec()

方法说明

obj.getConvertedToObject()

绑定状态: 已绑定

Python 调用: obj.getConvertedToObject()

This function returns a smart pointer to the oaCMObjectRef object of the type-converted object。

Python 示例

from oapy._oa import _cms

# assume obj is a oaConvertObjectChangeRec
obj.getConvertedToObject()

obj.setConvertedToObject(convObjRef, convObjState)

绑定状态: 已绑定

Python 调用: obj.setConvertedToObject(convObjRef, convObjState)

This function sets the oaCMObjectRef of the type-converted object and specifies the full state of the converted object。

参数

  • convObjRef: A smart pointer to the oaCMObjectRef for the type-converted object。
  • convObjState: The full state for the converted object。

Python 示例

from oapy._oa import _cms

# assume obj is a oaConvertObjectChangeRec
obj.setConvertedToObject(convObjRef, convObjState)

obj.getObjectStateEntry()

绑定状态: 已绑定

Python 调用: obj.getObjectStateEntry()

This function returns a smart pointer to an oaCMObjectStateEntry object that stores the state of the object。 The state of an object is a a unique combination of attributes and relationships that define the object。

Python 示例

from oapy._oa import _cms

# assume obj is a oaConvertObjectChangeRec
obj.getObjectStateEntry()

obj.accept(visitor, forward=true)

绑定状态: 已绑定

Python 调用: obj.accept(visitor, forward=true)

This function accepts a change record visitor。 It calls the visit function of the specified visitor on this object。 The forward parameter indicates the direction in which the change records are being visited。 The forward parameter might be set to false if the goal of the visit is to roll back changes due to an undo command。 实现 oaChangeRec。

参数

  • visitor: A pointer to the change record visitor to call on this object。
  • forward: Specifies the direction in which change records are being visited。

Python 示例

from oapy._oa import _cms

# assume obj is a oaConvertObjectChangeRec
obj.accept(visitor, forward=true)

obj.isConvertObjectChangeRec()

绑定状态: 已绑定

Python 调用: obj.isConvertObjectChangeRec()

This function always returns true indicating that this is an object type-conversion change record。 从 oaChangeRec 重新实现。

Python 示例

from oapy._oa import _cms

# assume obj is a oaConvertObjectChangeRec
obj.isConvertObjectChangeRec()