Class ReverseConversion
java.lang.Object
org.mapstruct.ap.internal.conversion.ReverseConversion
- All Implemented Interfaces:
ConversionProvider
* A
ConversionProvider which creates the inversed conversions for a
given conversion provider.- Author:
- Gunnar Morling
-
Method Summary
Modifier and TypeMethodDescriptionfrom(ConversionContext conversionContext) Creates the conversion from target to source of a property mapping.getRequiredHelperFields(ConversionContext conversionContext) Retrieves any fields required for creating the conversion.getRequiredHelperMethods(ConversionContext conversionContext) Retrieves any helper methods required for creating the conversion.static ReverseConversioninverse(ConversionProvider conversionProvider) to(ConversionContext conversionContext) Creates the conversion from source to target of a property mapping.
-
Method Details
-
inverse
-
to
Description copied from interface:ConversionProviderCreates the conversion from source to target of a property mapping.- Specified by:
toin interfaceConversionProvider- Parameters:
conversionContext- ConversionContext providing optional information required for creating the conversion.- Returns:
- A conversion from source to target.
-
from
Description copied from interface:ConversionProviderCreates the conversion from target to source of a property mapping.- Specified by:
fromin interfaceConversionProvider- Parameters:
conversionContext- ConversionContext providing optional information required for creating the conversion.- Returns:
- A conversion from target to source.
-
getRequiredHelperMethods
Description copied from interface:ConversionProviderRetrieves any helper methods required for creating the conversion.- Specified by:
getRequiredHelperMethodsin interfaceConversionProvider- Parameters:
conversionContext- ConversionContext providing optional information required for creating the conversion.- Returns:
- any helper methods when required.
-
getRequiredHelperFields
Description copied from interface:ConversionProviderRetrieves any fields required for creating the conversion.- Specified by:
getRequiredHelperFieldsin interfaceConversionProvider- Parameters:
conversionContext- ConversionContext providing optional information required for creating the conversion.- Returns:
- any fields when required.
-