Package com.opencsv.bean.validators
Annotation Type PreAssignmentValidator
Specifies the binding of a validator to a field in a bean. This validator will run
against the string that will be converted and assigned to the field and will be run
prior to the conversion.
- Since:
- 5.0
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass
<? extends StringValidator> Returns the validator that will validate the string. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThis is used to store additional information needed by theStringValidator
.
-
Element Details
-
validator
Class<? extends StringValidator> validatorReturns the validator that will validate the string.- Returns:
- The class of the validator that will validate the bean field string value
-
paramString
String paramStringThis is used to store additional information needed by theStringValidator
. This could, for example, contain a regular expression that will be applied to the data.- Returns:
- Parameter string required by the
StringValidator
- Default:
""
-