Class FeatureValue<V>
- java.lang.Object
-
- de.hybris.platform.catalog.jalo.classification.util.FeatureValue<V>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
@Deprecated public class FeatureValue<V> extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableDeprecated.since ages - useFeatureValueinstead.This class defines value objects for reading and writing classification attribute values instead of handlingProductFeatureitems directly.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description FeatureValue(Feature<V> parent, ProductFeature dbItem)Deprecated.protectedFeatureValue(FeatureValue<V> src)Deprecated.FeatureValue(TypedFeature<V> parent, V value)Deprecated.FeatureValue(UntypedFeature<V> parent, V value)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FeatureValueclone()Deprecated.protected java.lang.NumbercreateNumber(java.lang.Number original, double newValue)Deprecated.booleanequals(java.lang.Object obj)Deprecated.booleanequalsValue(FeatureValue<? extends java.lang.Number> other, double maxDifference)Deprecated.Special compare method forNumberfeatures values only: this methods compares the actual number value and checks it agains a given allowed difference.ClassificationAttributeUnitgetClassificationAttributeUnit()Deprecated.since ages - usegetUnit()insteadprotected ProductFeaturegetDatabaseItem()Deprecated.java.lang.StringgetDescription()Deprecated.Feature<V>getParent()Deprecated.ClassificationAttributeUnitgetUnit()Deprecated.VgetValue()Deprecated.VgetValue(ClassificationAttributeUnit otherUnit)Deprecated.java.lang.StringgetValueFormatted()Deprecated.java.lang.StringgetValueFormatted(SessionContext ctx)Deprecated.inthashCode()Deprecated.voidsetClassificationAttributeUnit(ClassificationAttributeUnit unit)Deprecated.since ages - usesetUnit(ClassificationAttributeUnit)insteadvoidsetDescription(java.lang.String description)Deprecated.voidsetUnit(ClassificationAttributeUnit unit)Deprecated.voidsetValue(V value)Deprecated.java.lang.StringtoString()Deprecated.protected PKwriteToDatabase(Language lang, int featurePosition, int valuePosition)Deprecated.
-
-
-
Constructor Detail
-
FeatureValue
public FeatureValue(UntypedFeature<V> parent, V value)
Deprecated.
-
FeatureValue
public FeatureValue(TypedFeature<V> parent, V value) throws JaloInvalidParameterException
Deprecated.- Throws:
JaloInvalidParameterException
-
FeatureValue
protected FeatureValue(FeatureValue<V> src)
Deprecated.
-
FeatureValue
public FeatureValue(Feature<V> parent, ProductFeature dbItem)
Deprecated.
-
-
Method Detail
-
writeToDatabase
protected PK writeToDatabase(Language lang, int featurePosition, int valuePosition)
Deprecated.
-
getDatabaseItem
protected ProductFeature getDatabaseItem()
Deprecated.
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
equalsValue
public boolean equalsValue(FeatureValue<? extends java.lang.Number> other, double maxDifference)
Deprecated.Special compare method forNumberfeatures values only: this methods compares the actual number value and checks it agains a given allowed difference. If the feature values own different units which are convertible the values are converted automatically.- Parameters:
other- the other feature value to compare its value tomaxDifference- the allowed difference
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
clone
public FeatureValue clone() throws java.lang.CloneNotSupportedException
Deprecated.- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
getUnit
public ClassificationAttributeUnit getUnit()
Deprecated.
-
setUnit
public void setUnit(ClassificationAttributeUnit unit)
Deprecated.
-
getClassificationAttributeUnit
@Deprecated public ClassificationAttributeUnit getClassificationAttributeUnit()
Deprecated.since ages - usegetUnit()instead- Returns:
- a
ClassificationAttributeUnit
-
setClassificationAttributeUnit
@Deprecated public void setClassificationAttributeUnit(ClassificationAttributeUnit unit)
Deprecated.since ages - usesetUnit(ClassificationAttributeUnit)instead- Parameters:
unit-
-
getDescription
public java.lang.String getDescription()
Deprecated.
-
setDescription
public void setDescription(java.lang.String description)
Deprecated.
-
getValue
public V getValue()
Deprecated.
-
getValue
public V getValue(ClassificationAttributeUnit otherUnit)
Deprecated.
-
getValueFormatted
public java.lang.String getValueFormatted()
Deprecated.
-
getValueFormatted
public java.lang.String getValueFormatted(SessionContext ctx)
Deprecated.
-
createNumber
protected java.lang.Number createNumber(java.lang.Number original, double newValue)Deprecated.
-
setValue
public void setValue(V value)
Deprecated.
-
-