Interface ClassificationAttributeValueHandler
-
- All Known Implementing Classes:
CollectionClassificationAttributeValueHandler,LocalizedClassificationAttributeValueHandler,RemoveClassificationAttributeValueHandler,SingleClassificationAttributeValueHandler
public interface ClassificationAttributeValueHandlerSets the given value on product if handler is applicable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisApplicable(ClassificationTypeAttributeDescriptor attribute, java.lang.Object value)Determines if this converter is applicable for the given attribute and valuevoidset(ProductModel product, ClassificationTypeAttributeDescriptor attribute, java.lang.Object value)Sets the given value for attribute on the product.
-
-
-
Method Detail
-
isApplicable
boolean isApplicable(ClassificationTypeAttributeDescriptor attribute, java.lang.Object value)
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
void set(ProductModel product, ClassificationTypeAttributeDescriptor attribute, java.lang.Object value)
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
-
-