Class SingularLocalizedAttributeValueConverter
java.lang.Object
de.hybris.platform.odata2services.converter.SingularLocalizedAttributeValueConverter
- All Implemented Interfaces:
ValueConverter
-
Constructor Summary
ConstructorsConstructorDescriptionSingularLocalizedAttributeValueConverter(@NotNull LocalizedValueProvider provider) -
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
-
SingularLocalizedAttributeValueConverter
-
-
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.
-