Top Description Methods
com.univocity.parsers.annotations

public @Interface Convert

extends Annotation
Annotations
@Retention:RUNTIME
@Inherited
@Target:FIELD, METHOD, ANNOTATION_TYPE
Imports
com.univocity.parsers.common.processor.*, com.univocity.parsers.conversions.*, java.lang.annotation.*

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 - [email protected]
See Also
Conversion, Conversions, BeanProcessor, BeanWriterProcessor

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

list of arguments create a new instance of the custom conversion class.
args
()

The arguments to use when invoking the constructor of the class given by Convert#conversionClass().

public Class<? extends Conversion<I, O>>

Returns:

custom class used to convert values
conversionClass
()

A user provided implementation of Conversion which will be instantiated using the arguments provided by Convert#args()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

argsback to summary
public String[] args()

The arguments to use when invoking the constructor of the class given by Convert#conversionClass().

Returns:String[]

list of arguments create a new instance of the custom conversion class.

conversionClassback to summary
public Class<? extends Conversion<I, O>> conversionClass()

A user provided implementation of Conversion which will be instantiated using the arguments provided by Convert#args()

Returns:Class<? extends Conversion<I, O>>

custom class used to convert values

Annotations
@SuppressWarnings:rawtypes