It is used as part of schema validation, after successful conversion of CSV string value to desired type.
A bunch of common validators are provided by the library. Additional ones may be created by implementing this trait. The only method that has to be defined by implementing classes is isValid, since reasonable defaults are provided for other methods.
Implementing classes may override this method to provide precise error information for invalid values. The default implementation returns generic message containing validated value and validator name.
Implementing classes may override this method to provide precise error information for invalid values. The default implementation returns generic message containing validated value and validator name.
Name of this validator, to be used while providing error information.
Name of this validator, to be used while providing error information.
The default value is based on validator class/object name. Implementing classes may provide their own values. It is recommended to define one if validator is implemented as top-level anonymous class, without meaningful name.
Name of this validator, to be used while providing error information.
Name of this validator, to be used while providing error information.
The default value is based on validator class/object name. Implementing classes may provide their own values. It is recommended to define one if validator is implemented as top-level anonymous class, without meaningful name.