Class LocalizedAttribute2MapPopulator
- java.lang.Object
-
- de.hybris.platform.integrationservices.populator.AbstractItem2MapPopulator<java.util.Map<java.util.Locale,java.lang.String>>
-
- de.hybris.platform.integrationservices.populator.LocalizedAttribute2MapPopulator
-
- All Implemented Interfaces:
Populator<ItemToMapConversionContext,java.util.Map<java.lang.String,java.lang.Object>>
public class LocalizedAttribute2MapPopulator extends AbstractItem2MapPopulator<java.util.Map<java.util.Locale,java.lang.String>>
-
-
Constructor Summary
Constructors Constructor Description LocalizedAttribute2MapPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommonI18NServicegetCommonI18NService()protected booleanisApplicable(TypeAttributeDescriptor attributeDescriptor)Indicates whether this Populator is applicable to process the attributeprotected voidpopulateToMap(TypeAttributeDescriptor attr, ItemToMapConversionContext source, java.util.Map<java.lang.String,java.lang.Object> target)Implements the logic to populate the targetvoidsetCommonI18NService(CommonI18NService commonI18NService)-
Methods inherited from class de.hybris.platform.integrationservices.populator.AbstractItem2MapPopulator
getAttributeValue, getAttributeValue, getModelService, populate, setModelService
-
-
-
-
Method Detail
-
populateToMap
protected void populateToMap(TypeAttributeDescriptor attr, ItemToMapConversionContext source, java.util.Map<java.lang.String,java.lang.Object> target)
Description copied from class:AbstractItem2MapPopulatorImplements the logic to populate the target- Specified by:
populateToMapin classAbstractItem2MapPopulator<java.util.Map<java.util.Locale,java.lang.String>>- Parameters:
attr- descriptor of the attribute to be populatedsource- Source used in the implementation to populate the targettarget- Populate the target with the result
-
isApplicable
protected boolean isApplicable(TypeAttributeDescriptor attributeDescriptor)
Description copied from class:AbstractItem2MapPopulatorIndicates whether this Populator is applicable to process the attribute- Specified by:
isApplicablein classAbstractItem2MapPopulator<java.util.Map<java.util.Locale,java.lang.String>>- Parameters:
attributeDescriptor- descriptor of the attribute to make the decision about- Returns:
true, if the Populator is applicable; otherwisefalse
-
getCommonI18NService
protected CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
-