Interface ProductFeatureModelFactory

All Known Implementing Classes:
DefaultProductFeatureModelFactory

public interface ProductFeatureModelFactory
A factory for creating ProductFeatureModels.
  • 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 for
      classAttributeAssignment - classification attribute assignment for the feature
      value - values to assign to the feature
      valuePosition - 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 for
      classAttributeAssignment - classification attribute assignment for the feature
      value - values to assign to the feature
      valuePosition - the position to place the feature in the product
      language - the language of the feature value
      Returns:
      new product feature model