public interface ConversionProvider
TypeConversions such as
(long)source,Integer.valueOf(source) ornew SimpleDateFormat().format( source ).| Modifier and Type | Method and Description |
|---|---|
TypeConversion |
from(String targetReference,
ConversionContext conversionContext)
Creates the conversion from target to source of a property mapping.
|
TypeConversion |
to(String sourceReference,
ConversionContext conversionContext)
Creates the conversion from source to target of a property mapping.
|
TypeConversion to(String sourceReference, ConversionContext conversionContext)
sourceReference - A reference to the source object, e.g.
beanName.getFoo().conversionContext - ConversionContext providing optional information required for creating the conversion.TypeConversion from(String targetReference, ConversionContext conversionContext)
targetReference - A reference to the targetReference object, e.g.
beanName.getFoo().conversionContext - ConversionContext providing optional information required for creating the conversion.Copyright © 2012-2014. All Rights Reserved.