Uranium
Application Framework
|
Public Member Functions | |
None | __init__ (self, str key) |
Optional[ValidatorState] | __call__ (self, ContainerInterface value_provider, Optional[PropertyEvaluationContext] context=None) |
![]() | |
bool | __eq__ (self, object other) |
int | __hash__ (self) |
bool | isValid (self) |
FrozenSet[str] | getUsedSettingKeys (self) |
str | __str__ (self) |
str | __repr__ (self) |
Dict[str, Any] | __getstate__ (self) |
None | __setstate__ (self, Dict[str, Any] state) |
None | registerOperator (cls, str name, Callable operator) |
Protected Attributes | |
_key | |
![]() | |
_code | |
_used_keys | |
_used_values | |
_compiled | |
_valid | |
Additional Inherited Members | |
![]() | |
_safeCompile (self) | |
Validates that a SettingInstance's value is within a certain minimum and maximum value. This class performs validation of any value that has __lt__ and __gt__ implemented, but it is primarily used for numerical values like integers and floats.
None UM.Settings.Validator.Validator.__init__ | ( | self, | |
str | key ) |
Constructor :param instance: The instance this Validator validates.
Reimplemented from UM.Settings.SettingFunction.SettingFunction.
Optional[ValidatorState] UM.Settings.Validator.Validator.__call__ | ( | self, | |
ContainerInterface | value_provider, | ||
Optional[PropertyEvaluationContext] | context = None ) |
Perform the actual validation.
Reimplemented from UM.Settings.SettingFunction.SettingFunction.