Annotation Type Convert
-
@Retention(RUNTIME) @Inherited @Target({FIELD,METHOD,ANNOTATION_TYPE}) public @interface ConvertAssigns a custom implementation ofConversionto be executed (Conversion.execute(Object)) when writing to the field and reverted (Conversion.revert(Object)) when reading from the field.- Author:
- Univocity Software Pty Ltd - parsers@univocity.com, Univocity Software Pty Ltd - parsers@univocity.com
- See Also:
Conversion,Conversions,BeanProcessor,BeanWriterProcessor
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends Conversion>conversionClassA user provided implementation ofConversionwhich will be instantiated using the arguments provided byargs()
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String[]argsThe arguments to use when invoking the constructor of the class given byconversionClass().
-
-
-
Element Detail
-
conversionClass
java.lang.Class<? extends Conversion> conversionClass
A user provided implementation ofConversionwhich will be instantiated using the arguments provided byargs()- Returns:
- custom class used to convert values
-
-
-
args
java.lang.String[] args
The arguments to use when invoking the constructor of the class given byconversionClass().- Returns:
- list of arguments create a new instance of the custom conversion class.
- Default:
- {}
-
-