TagBinding
Kind: Class
Domain: Other public symbols
Canonical import: from cadflow import TagBinding
Signature
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
Description
Canonical, source-preserving Semantic Binding Schema 1.0 assignment.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
tag | 'str' | yes | - | Not explicitly described in the source docstring. |
producer | 'TagProducer' | yes | - | Not explicitly described in the source docstring. |
scope | 'TagBindingScope' | no | <factory> | Not explicitly described in the source docstring. |
target | 'TagTarget' | no | <factory> | Not explicitly described in the source docstring. |
propagation | 'TagPropagation' | no | <factory> | Not explicitly described in the source docstring. |
evidence | 'TagEvidence' | no | <factory> | Not explicitly described in the source docstring. |
attachment | 'TagAttachment | str' | no | <TagAttachment.LOCAL: 'local'> | Not explicitly described in the source docstring. |
certainty | 'TagCertainty | str' | no | <TagCertainty.ASSERTED: 'asserted'> | Not explicitly described in the source docstring. |
lifecycle | 'TagLifecycle | str' | no | <TagLifecycle.ASSERTION: 'assertion'> | Not explicitly described in the source docstring. |
binding_id | 'str' | no | <factory> | Not explicitly described in the source docstring. |
schema_version | 'str' | no | '1.0' | Not explicitly described in the source docstring. |
Returns
Type: None
The source docstring does not declare additional return semantics.
Errors
The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.
Data fields
| Name | Type | Default |
|---|---|---|
tag | 'str' | required |
producer | 'TagProducer' | required |
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' |
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
from_dict | class method | (cls, data: 'Mapping[str, Any]') -> "'TagBinding'" | See the member signature. |
to_dict | method | (self) -> 'Dict[str, Any]' | See the member signature. |
Behavior and constraints
- Instances are immutable dataclass values; update workflows return a replacement value.
Import check
from cadflow import TagBinding