Class FeatureValue
java.lang.Object
de.hybris.platform.classification.features.FeatureValue
A single feature value of a
Feature. It contains a value, a description and - if the jalo item is a
TypedFeature - a ClassificationAttributeUnitModel
. This class is the representation of FeatureValue.-
Constructor Summary
ConstructorsConstructorDescriptionFeatureValue(Object value) Initializes this featurevalue with an object.FeatureValue(Object value, String description, ClassificationAttributeUnitModel unitmodel) Initializes this featurevalue with an object.FeatureValue(Object value, String description, ClassificationAttributeUnitModel unitmodel, PK productFeaturePK) Initializes this featurevalue with an object. -
Method Summary
Modifier and TypeMethodDescriptiongetUnit()getValue()voidsetDescription(String description) voidsetProductFeaturePk(PK productFeaturePK) voidsetUnit(ClassificationAttributeUnitModel unitmodel) voidtoString()
-
Constructor Details
-
FeatureValue
Initializes this featurevalue with an object.- Parameters:
value- the value- Throws:
IllegalArgumentException- if the value is null
-
FeatureValue
Initializes this featurevalue with an object.- Parameters:
value- the valuedescription- a descrition text, can be nullunitmodel- an unitmodel, can be null- Throws:
IllegalArgumentException- if the value is null
-
FeatureValue
public FeatureValue(Object value, String description, ClassificationAttributeUnitModel unitmodel, PK productFeaturePK) Initializes this featurevalue with an object.- Parameters:
value- the valuedescription- a descrition text, can be nullunitmodel- an unitmodel, can be nullproductFeaturePK- the product feature pk- Throws:
IllegalArgumentException- if the value is null
-
-
Method Details