Schema Conditions (autotransform.step.condition.schema)
The implementation for the SchemaNameCondition.
- class autotransform.step.condition.schema.SchemaNameCondition(*, comparison: ComparisonType, value: 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. Note: only equals and not equals are valid, all others will result in an error.
- comparison
The type of comparison to perform.
- Type
- value
The schema name to compare against.
- Type
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: str