Class DefaultComposedType2MapPopulator
- java.lang.Object
-
- de.hybris.platform.integrationservices.populator.AbstractItem2MapPopulator<ItemModel>
-
- de.hybris.platform.integrationservices.populator.DefaultComposedType2MapPopulator
-
- All Implemented Interfaces:
Populator<ItemToMapConversionContext,java.util.Map<java.lang.String,java.lang.Object>>
public class DefaultComposedType2MapPopulator extends AbstractItem2MapPopulator<ItemModel>
Populate the composed type of item model's attribute to Map. Note, the enumerate meta type dose not include.
-
-
Constructor Summary
Constructors Constructor Description DefaultComposedType2MapPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegrationObjectConversionServicegetConversionService()protected booleanisApplicable(TypeAttributeDescriptor attributeDescriptor)Indicates whether this Populator is applicable to process the attributeprotected voidpopulateToMap(TypeAttributeDescriptor attribute, ItemToMapConversionContext context, java.util.Map<java.lang.String,java.lang.Object> target)Implements the logic to populate the targetvoidsetConversionService(IntegrationObjectConversionService service)-
Methods inherited from class de.hybris.platform.integrationservices.populator.AbstractItem2MapPopulator
getAttributeValue, getAttributeValue, getModelService, populate, setModelService
-
-
-
-
Method Detail
-
populateToMap
protected void populateToMap(TypeAttributeDescriptor attribute, ItemToMapConversionContext context, 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<ItemModel>- Parameters:
attribute- descriptor of the attribute to be populatedcontext- 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<ItemModel>- Parameters:
attributeDescriptor- descriptor of the attribute to make the decision about- Returns:
true, if the Populator is applicable; otherwisefalse
-
getConversionService
public IntegrationObjectConversionService getConversionService()
-
setConversionService
public void setConversionService(IntegrationObjectConversionService service)
-
-