Interface ClassificationAttributeValueHandler
- All Known Implementing Classes:
CollectionClassificationAttributeValueHandler,LocalizedClassificationAttributeValueHandler,RemoveClassificationAttributeValueHandler,SingleClassificationAttributeValueHandler
public interface ClassificationAttributeValueHandler
Sets the given value on product if handler is applicable.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisApplicable(ClassificationTypeAttributeDescriptor attribute, Object value) Determines if this converter is applicable for the given attribute and valuevoidset(ProductModel product, ClassificationTypeAttributeDescriptor attribute, Object value) Sets the given value for attribute on the product.
-
Method Details
-
isApplicable
Determines if this converter is applicable for the given attribute and value- Parameters:
attribute- the attribute checked for eligibility of handlervalue- the value checked for eligibility of handler- Returns:
- returns true if handler is applicable, false otherwise
-
set
Sets the given value for attribute on the product.- Parameters:
product- the product for which attribute is going to be set onattribute- the attribute to set value onvalue- the value to be set
-