Class FeatureValue
- java.lang.Object
-
- de.hybris.platform.classification.features.FeatureValue
-
public class FeatureValue extends java.lang.ObjectA single feature value of aFeature. It contains a value, a description and - if the jalo item is aTypedFeature- aClassificationAttributeUnitModel. This class is the representation ofFeatureValue.
-
-
Constructor Summary
Constructors Constructor Description FeatureValue(java.lang.Object value)Initializes this featurevalue with an object.FeatureValue(java.lang.Object value, java.lang.String description, ClassificationAttributeUnitModel unitmodel)Initializes this featurevalue with an object.FeatureValue(java.lang.Object value, java.lang.String description, ClassificationAttributeUnitModel unitmodel, PK productFeaturePK)Initializes this featurevalue with an object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()PKgetProductFeaturePk()ClassificationAttributeUnitModelgetUnit()java.lang.ObjectgetValue()voidsetDescription(java.lang.String description)voidsetProductFeaturePk(PK productFeaturePK)voidsetUnit(ClassificationAttributeUnitModel unitmodel)voidsetValue(java.lang.Object value)java.lang.StringtoString()
-
-
-
Constructor Detail
-
FeatureValue
public FeatureValue(java.lang.Object value)
Initializes this featurevalue with an object.- Parameters:
value- the value- Throws:
java.lang.IllegalArgumentException- if the value is null
-
FeatureValue
public FeatureValue(java.lang.Object value, java.lang.String description, ClassificationAttributeUnitModel unitmodel)Initializes this featurevalue with an object.- Parameters:
value- the valuedescription- a descrition text, can be nullunitmodel- an unitmodel, can be null- Throws:
java.lang.IllegalArgumentException- if the value is null
-
FeatureValue
public FeatureValue(java.lang.Object value, java.lang.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:
java.lang.IllegalArgumentException- if the value is null
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setValue
public void setValue(java.lang.Object value)
-
getValue
public java.lang.Object getValue()
-
setDescription
public void setDescription(java.lang.String description)
-
getDescription
public java.lang.String getDescription()
-
setUnit
public void setUnit(ClassificationAttributeUnitModel unitmodel)
-
getUnit
public ClassificationAttributeUnitModel getUnit()
-
getProductFeaturePk
public PK getProductFeaturePk()
-
setProductFeaturePk
public void setProductFeaturePk(PK productFeaturePK)
-
-