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