Interface ConversionProvider
-
- All Known Implementing Classes:
AbstractJavaTimeToStringConversion
,AbstractJodaTypeToStringConversion
,AbstractNumberToStringConversion
,BigDecimalToBigIntegerConversion
,BigDecimalToPrimitiveConversion
,BigDecimalToStringConversion
,BigDecimalToWrapperConversion
,BigIntegerToPrimitiveConversion
,BigIntegerToStringConversion
,BigIntegerToWrapperConversion
,CharToStringConversion
,CharWrapperToStringConversion
,CurrencyToStringConversion
,DateToSqlDateConversion
,DateToSqlTimeConversion
,DateToSqlTimestampConversion
,DateToStringConversion
,EnumStringConversion
,JavaInstantToDateConversion
,JavaLocalDateTimeToDateConversion
,JavaLocalDateTimeToStringConversion
,JavaLocalDateToDateConversion
,JavaLocalDateToSqlDateConversion
,JavaLocalDateToStringConversion
,JavaLocalTimeToStringConversion
,JavaZonedDateTimeToDateConversion
,JavaZonedDateTimeToStringConversion
,JodaDateTimeToCalendarConversion
,JodaDateTimeToStringConversion
,JodaLocalDateTimeToStringConversion
,JodaLocalDateToStringConversion
,JodaLocalTimeToStringConversion
,JodaTimeToDateConversion
,PrimitiveToPrimitiveConversion
,PrimitiveToStringConversion
,PrimitiveToWrapperConversion
,ReverseConversion
,SimpleConversion
,StaticParseToStringConversion
,StringBuilderToStringConversion
,URLToStringConversion
,UUIDToStringConversion
,WrapperToStringConversion
,WrapperToWrapperConversion
public interface ConversionProvider
Implementations create inlineTypeConversion
s such as(long)source
,Integer.valueOf(source)
ornew SimpleDateFormat().format( source )
.
- Author:
- Gunnar Morling
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Assignment
from(ConversionContext conversionContext)
Creates the conversion from target to source of a property mapping.default List<FieldReference>
getRequiredHelperFields(ConversionContext conversionContext)
List<HelperMethod>
getRequiredHelperMethods(ConversionContext conversionContext)
Assignment
to(ConversionContext conversionContext)
Creates the conversion from source to target of a property mapping.
-
-
-
Method Detail
-
to
Assignment to(ConversionContext conversionContext)
Creates the conversion from source to target of a property mapping.- Parameters:
conversionContext
- ConversionContext providing optional information required for creating the conversion.- Returns:
- A conversion from source to target.
-
from
Assignment from(ConversionContext conversionContext)
Creates the conversion from target to source of a property mapping.- Parameters:
conversionContext
- ConversionContext providing optional information required for creating the conversion.- Returns:
- A conversion from target to source.
-
getRequiredHelperMethods
List<HelperMethod> getRequiredHelperMethods(ConversionContext conversionContext)
- Parameters:
conversionContext
- ConversionContext providing optional information required for creating the conversion.- Returns:
- any helper methods when required.
-
getRequiredHelperFields
default List<FieldReference> getRequiredHelperFields(ConversionContext conversionContext)
- Parameters:
conversionContext
- ConversionContext providing optional information required for creating the conversion.- Returns:
- any fields when required.
-
-