Schema Conditions (autotransform.step.condition.schema)
The implementation for the SchemaNameCondition.
- class autotransform.step.condition.schema.SchemaNameCondition(*, comparison: ComparisonType, value: Union[str, List[str]])
Bases:
ComparisonCondition[str]A condition which checks the name of the Schema that produced a change against the supplied name, using the supplied comparison.
- comparison
The type of comparison to perform.
- Type
- value
The schema name(s) to compare against.
- Type
str | List[str]
- name
The name of the Component.
- Type
ClassVar[ConditionName]
- comparison: ComparisonType
- get_val_from_change(change: Change) str
Gets the Schema name from the Change.
- Parameters
change (Change) – The Change the Condition is checking.
- Returns
The name of the Schema that produced the change.
- Return type
str
- name: ClassVar[ConditionName] = 'schema_name'
- value: Union[str, List[str]]