Class AbstractItemToMapPopulator

java.lang.Object
de.hybris.platform.integrationservices.populator.AbstractItemToMapPopulator
All Implemented Interfaces:
Populator<ItemToMapConversionContext,Map<String,Object>>
Direct Known Subclasses:
DefaultAtomicType2MapPopulator, DefaultCollectionType2MapPopulator, DefaultComposedType2MapPopulator, DefaultEnumerationMetaType2MapPopulator, DefaultMapType2MapPopulator, DefaultNonLocalizedMapType2MapPopulator, LocalizedAttribute2MapPopulator

public abstract class AbstractItemToMapPopulator extends Object implements Populator<ItemToMapConversionContext,Map<String,Object>>
Abstract class to populate given item model to a Map which is representation of the Integration Object.
  • Constructor Details

    • AbstractItemToMapPopulator

      public AbstractItemToMapPopulator()
  • Method Details

    • populate

      public void populate(ItemToMapConversionContext source, Map<String,Object> target)
      Description copied from interface: Populator
      Populate the target instance with values from the source instance.
      Specified by:
      populate in interface Populator<ItemToMapConversionContext,Map<String,Object>>
      Parameters:
      source - the source object
      target - the target to fill
    • populateToMap

      protected abstract void populateToMap(TypeAttributeDescriptor attr, ItemToMapConversionContext source, Map<String,Object> target)
      Implements the logic to populate the target
      Parameters:
      attr - descriptor of the attribute to be populated
      source - Source used in the implementation to populate the target
      target - Populate the target with the result
    • isApplicable

      protected abstract boolean isApplicable(TypeAttributeDescriptor attributeDescriptor)
      Indicates whether this Populator is applicable to process the attribute
      Parameters:
      attributeDescriptor - descriptor of the attribute to make the decision about
      Returns:
      true, if the Populator is applicable; otherwise false
    • getModelService

      protected ModelService getModelService()
      Gets a reference to the ModelService
      Returns:
      The ModelService
    • setModelService

      public void setModelService(ModelService modelService)