interface - Parameter validation
This topic discusses the parameter validation feature provided by the PLANTA
link API.
Classes
ParameterValidator
Methods
Function |
Parameters |
Return Value |
Description |
ParameterValidator.__init__(self, parameter_name) |
parameter_name: Bezeichnung |
|
Initialize a ParameterValidator |
ParameterValidator.get_error_message(self, value) |
value: String value |
Error message as string |
Override this in a subclass and provide a meaningful error message to the user |
ParameterValidator.validate(self, value) |
value: String value |
True or False |
Override this in a subclass and implement a validation that returns True or False |
Properties