Interface ProductFeatureModelFactory
- All Known Implementing Classes:
DefaultProductFeatureModelFactory
public interface ProductFeatureModelFactory
A factory for creating
ProductFeatureModels.-
Method Summary
Modifier and TypeMethodDescriptioncreate(ProductModel product, ClassAttributeAssignmentModel classAttributeAssignment, Object value, int valuePosition) Creates a feature for product with classification attribute.create(ProductModel product, ClassAttributeAssignmentModel classAttributeAssignment, Object value, int valuePosition, LanguageModel language) Creates a feature for product with classification attribute for the given language.
-
Method Details
-
create
ProductFeatureModel create(ProductModel product, ClassAttributeAssignmentModel classAttributeAssignment, Object value, int valuePosition) Creates a feature for product with classification attribute.- Parameters:
product- product to create features forclassAttributeAssignment- classification attribute assignment for the featurevalue- values to assign to the featurevaluePosition- the position to place the feature in the product- Returns:
- new product feature model
-
create
ProductFeatureModel create(ProductModel product, ClassAttributeAssignmentModel classAttributeAssignment, Object value, int valuePosition, LanguageModel language) Creates a feature for product with classification attribute for the given language.- Parameters:
product- product to create features forclassAttributeAssignment- classification attribute assignment for the featurevalue- values to assign to the featurevaluePosition- the position to place the feature in the productlanguage- the language of the feature value- Returns:
- new product feature model
-