首页 / cms / oaChangeSetVisitor

oaChangeSetVisitor

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

概览

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

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

详细说明

The oaChangeSet classes support visitor design pattern interfaces。 The oaChangeSetVisitor class is the interface for the visitor, which is capable of visiting concrete oaChangeSet nodes。 This class can be derived to define specific actions。 It is also a composite visitor and should be paired with related visitors such as oaChangeRecVisitor and srVisitor 。 A visitor design pattern interface uses a dual dispatch technique。 Each concrete node in the data structure has an accept method, which provides access to a visitor。 The accept method sends a message to the visitor that includes the node's class。 The visitor can then execute its behavior for that element。

方法总览

状态 Python 调用
obj.visit(node)

方法说明

obj.visit(node)

绑定状态: 已绑定

Python 调用: obj.visit(node)

This function visits the specified node in the change set。

参数

  • node: The change set node to be visited by this visitor。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSetVisitor
obj.visit(node)