Class ProductFeatureValueAttributeHandler
- java.lang.Object
-
- de.hybris.platform.catalog.dynamic.ProductFeatureValueAttributeHandler
-
- All Implemented Interfaces:
DynamicAttributeHandler<java.lang.Object,ProductFeatureModel>
public class ProductFeatureValueAttributeHandler extends java.lang.Object implements DynamicAttributeHandler<java.lang.Object,ProductFeatureModel>
Dynamic Attribute Handler for attribute 'value' from ProductFeature.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringENABLE_STRING_TO_NUMBER_CONVERSIONstatic intTYPE_BOOLEANstatic intTYPE_DATEstatic intTYPE_NUMBERstatic intTYPE_STRINGstatic intTYPE_VALUE
-
Constructor Summary
Constructors Constructor Description ProductFeatureValueAttributeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.math.BigDecimalconvertToBigDecimal(java.lang.Number number)java.lang.Objectget(ProductFeatureModel feature)Holds logic behind getter for dynamic attribute.voidset(ProductFeatureModel model, java.lang.Object value)Holds logic behind setter for dynamic attribute.voidsetFormatFactory(FormatFactory formatFactory)voidsetTypeService(TypeService typeService)
-
-
-
Field Detail
-
TYPE_STRING
public static final int TYPE_STRING
- See Also:
- Constant Field Values
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN
- See Also:
- Constant Field Values
-
TYPE_NUMBER
public static final int TYPE_NUMBER
- See Also:
- Constant Field Values
-
TYPE_VALUE
public static final int TYPE_VALUE
- See Also:
- Constant Field Values
-
TYPE_DATE
public static final int TYPE_DATE
- See Also:
- Constant Field Values
-
ENABLE_STRING_TO_NUMBER_CONVERSION
public static final java.lang.String ENABLE_STRING_TO_NUMBER_CONVERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public java.lang.Object get(ProductFeatureModel feature)
Description copied from interface:DynamicAttributeHandlerHolds logic behind getter for dynamic attribute.- Specified by:
getin interfaceDynamicAttributeHandler<java.lang.Object,ProductFeatureModel>- Parameters:
feature- model for which dynamic attribute is declared.- Returns:
- computed value.
-
set
public void set(ProductFeatureModel model, java.lang.Object value)
Description copied from interface:DynamicAttributeHandlerHolds logic behind setter for dynamic attribute.- Specified by:
setin interfaceDynamicAttributeHandler<java.lang.Object,ProductFeatureModel>- Parameters:
model- model for which dynamic attribute is declared.value- the value which will be used by setter logic.
-
convertToBigDecimal
protected java.math.BigDecimal convertToBigDecimal(java.lang.Number number)
-
setFormatFactory
public void setFormatFactory(FormatFactory formatFactory)
-
setTypeService
public void setTypeService(TypeService typeService)
-
-