Class ProductFeatureListPopulator<SOURCE extends FeatureList,TARGET extends ProductData>
- java.lang.Object
-
- de.hybris.platform.commercefacades.product.converters.populator.ProductFeatureListPopulator<SOURCE,TARGET>
-
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class ProductFeatureListPopulator<SOURCE extends FeatureList,TARGET extends ProductData> extends java.lang.Object implements Populator<SOURCE,TARGET>
Populate the classifications of the product data from a feature list
-
-
Constructor Summary
Constructors Constructor Description ProductFeatureListPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<ClassificationData>buildClassificationDataList(FeatureList source)protected Converter<ClassificationClassModel,ClassificationData>getClassificationConverter()protected Converter<Feature,FeatureData>getFeatureConverter()voidpopulate(SOURCE source, TARGET target)Populate the target instance with values from the source instance.voidsetClassificationConverter(Converter<ClassificationClassModel,ClassificationData> classificationConverter)voidsetFeatureConverter(Converter<Feature,FeatureData> featureConverter)
-
-
-
Method Detail
-
getClassificationConverter
protected Converter<ClassificationClassModel,ClassificationData> getClassificationConverter()
-
setClassificationConverter
public void setClassificationConverter(Converter<ClassificationClassModel,ClassificationData> classificationConverter)
-
getFeatureConverter
protected Converter<Feature,FeatureData> getFeatureConverter()
-
setFeatureConverter
public void setFeatureConverter(Converter<Feature,FeatureData> featureConverter)
-
populate
public void populate(SOURCE source, TARGET target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<SOURCE extends FeatureList,TARGET extends ProductData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
buildClassificationDataList
protected java.util.List<ClassificationData> buildClassificationDataList(FeatureList source)
-
-