Annotation Type Validate
-
@Retention(RUNTIME) @Inherited @Target({FIELD,METHOD,ANNOTATION_TYPE}) public @interface ValidatePerforms basic validations against the String representation of the value found in the annotated field. A validation failure will generate aDataValidationException. By default, nulls and blanks are not allowed.Commonly used for java beans processed using
BeanProcessorand/orBeanWriterProcessor- Author:
- Univocity Software Pty Ltd - parsers@univocity.com
- See Also:
Conversion,Conversions,BeanProcessor,BeanWriterProcessor
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanallowBlanksIndicates whether this field can be blank (i.e.java.lang.StringmatchesEnsures that the value of this field matches a given regular expression.java.lang.String[]noneOfEnsures that the value of this field does is not an unwanted value.booleannullableIndicates whether this field can benulljava.lang.String[]oneOfEnsures that the value of this field is one of a given set of alternativesjava.lang.Class<? extends Validator>[]validatorsUser provided implementations ofValidatorwhich will be executed in sequence after the validations specified in this annotation execute.
-