Interface ClassificationAttributeValueHandler

All Known Implementing Classes:
CollectionClassificationAttributeValueHandler, LocalizedClassificationAttributeValueHandler, RemoveClassificationAttributeValueHandler, SingleClassificationAttributeValueHandler

public interface ClassificationAttributeValueHandler
Sets the given value on product if handler is applicable.
  • Method Details

    • isApplicable

      boolean isApplicable(ClassificationTypeAttributeDescriptor attribute, Object value)
      Determines if this converter is applicable for the given attribute and value
      Parameters:
      attribute - the attribute checked for eligibility of handler
      value - the value checked for eligibility of handler
      Returns:
      returns true if handler is applicable, false otherwise
    • set

      void set(ProductModel product, ClassificationTypeAttributeDescriptor attribute, Object value)
      Sets the given value for attribute on the product.
      Parameters:
      product - the product for which attribute is going to be set on
      attribute - the attribute to set value on
      value - the value to be set