Class MapValueConverter
java.lang.Object
de.hybris.platform.odata2services.converter.MapValueConverter
- All Implemented Interfaces:
ValueConverter
A converter that handles ODataFeed with Map entry ODataEntries and converts them to a
Map-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(ConversionParameters parameters) Converts ODataEntry attribute value to the value that can exist inside anIntegrationItem.booleanisApplicable(ConversionParameters parameters) Deduce based on the conversion context whether this converter can handle the attribute value or not.
-
Constructor Details
-
MapValueConverter
public MapValueConverter()
-
-
Method Details
-
isApplicable
Description copied from interface:ValueConverterDeduce based on the conversion context whether this converter can handle the attribute value or not.- Specified by:
isApplicablein interfaceValueConverter- Parameters:
parameters- conversion parameters carrying the context for the value conversion.- Returns:
true, if this converter is applicable to the provided conversion parameters and can handle the attribute value conversion;falseotherwise.
-
convert
Description copied from interface:ValueConverterConverts ODataEntry attribute value to the value that can exist inside anIntegrationItem. In a typical usecase, whenValueConverter.isApplicable(ConversionParameters)returnstrue, only then call this method.- Specified by:
convertin interfaceValueConverter- Parameters:
parameters- conversion context containing the attribute value and other context information. This should be sameConversionParameters, which were passedValueConverter.isApplicable(ConversionParameters)- Returns:
- converted value.
-