com.univocity.parsers.annotations
Annotation Type Convert


@Retention(value=RUNTIME)
@Inherited
@Target(value={FIELD,METHOD,ANNOTATION_TYPE})
public @interface Convert

Assigns a custom implementation of Conversion to 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
 Class<? extends Conversion> conversionClass
          A user provided implementation of Conversion which will be instantiated using the arguments provided by args()
 
Optional Element Summary
 String[] args
          The arguments to use when invoking the constructor of the class given by conversionClass().
 

Element Detail

conversionClass

public abstract Class<? extends Conversion> conversionClass
A user provided implementation of Conversion which will be instantiated using the arguments provided by args()

Returns:
custom class used to convert values

args

public abstract String[] args
The arguments to use when invoking the constructor of the class given by conversionClass().

Returns:
list of arguments create a new instance of the custom conversion class.
Default:
{}


Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.