Class MapValueConverter
- java.lang.Object
-
- de.hybris.platform.odata2services.converter.MapValueConverter
-
- All Implemented Interfaces:
ValueConverter
public class MapValueConverter extends java.lang.Object implements ValueConverter
A converter that handles ODataFeed with Map entry ODataEntries and converts them to aMap
-
-
Constructor Summary
Constructors Constructor Description MapValueConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectconvert(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.
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(ConversionParameters parameters)
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
public java.lang.Object convert(ConversionParameters parameters)
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.
-
-