Package com.opencsv.bean.validators
Annotation Type PreAssignmentValidator
-
@Documented @Retention(RUNTIME) @Target(FIELD) public @interface 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
- Author:
- Scott Conway
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends StringValidator>
validator
Returns the validator that will validate the string.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
paramString
This is used to store additional information needed by theStringValidator
.
-
-
-
Element Detail
-
validator
java.lang.Class<? extends StringValidator> validator
Returns the validator that will validate the string.- Returns:
- The class of the validator that will validate the bean field string value
-
-
-
paramString
java.lang.String paramString
This 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:
- ""
-
-