跳到主要内容

TagBinding

类型:
领域: 其他公共符号
推荐导入: from cadflow import TagBinding

签名

class TagBinding(tag: 'str', producer: 'TagProducer', scope: 'TagBindingScope' = <factory>, target: 'TagTarget' = <factory>, propagation: 'TagPropagation' = <factory>, evidence: 'TagEvidence' = <factory>, attachment: 'TagAttachment | str' = <TagAttachment.LOCAL: 'local'>, certainty: 'TagCertainty | str' = <TagCertainty.ASSERTED: 'asserted'>, lifecycle: 'TagLifecycle | str' = <TagLifecycle.ASSERTION: 'assertion'>, binding_id: 'str' = <factory>, schema_version: 'str' = '1.0') -> None

功能说明

TagBinding 是 CadFlow 其他公共符号领域的公共类。

原始 API 说明

Canonical, source-preserving Semantic Binding Schema 1.0 assignment.

参数

名称类型必需默认值源码说明
tag'str'-源码 Docstring 未单独说明。
producer'TagProducer'-源码 Docstring 未单独说明。
scope'TagBindingScope'&lt;factory&gt;源码 Docstring 未单独说明。
target'TagTarget'&lt;factory&gt;源码 Docstring 未单独说明。
propagation'TagPropagation'&lt;factory&gt;源码 Docstring 未单独说明。
evidence'TagEvidence'&lt;factory&gt;源码 Docstring 未单独说明。
attachment'TagAttachment | str'&lt;TagAttachment.LOCAL: 'local'&gt;源码 Docstring 未单独说明。
certainty'TagCertainty | str'&lt;TagCertainty.ASSERTED: 'asserted'&gt;源码 Docstring 未单独说明。
lifecycle'TagLifecycle | str'&lt;TagLifecycle.ASSERTION: 'assertion'&gt;源码 Docstring 未单独说明。
binding_id'str'&lt;factory&gt;源码 Docstring 未单独说明。
schema_version'str''1.0'源码 Docstring 未单独说明。

返回值

类型: None

源码 Docstring 未声明更多返回语义。

异常

源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。

数据字段

名称类型默认值
tag'str'required
producer'TagProducer'required
scope'TagBindingScope'factory
target'TagTarget'factory
propagation'TagPropagation'factory
evidence'TagEvidence'factory
attachment'TagAttachment | str'&lt;TagAttachment.LOCAL: 'local'&gt;
certainty'TagCertainty | str'&lt;TagCertainty.ASSERTED: 'asserted'&gt;
lifecycle'TagLifecycle | str'&lt;TagLifecycle.ASSERTION: 'assertion'&gt;
binding_id'str'factory
schema_version'str''1.0'

公共成员

成员类型签名说明
from_dictclass method(cls, data: 'Mapping[str, Any]') -&gt; "'TagBinding'"见成员签名。
to_dictmethod(self) -&gt; 'Dict[str, Any]'见成员签名。

行为与约束

  • 实例是不可变 dataclass 值;更新式工作流会返回替代值。

导入检查

from cadflow import TagBinding

相关内容