de.hybris.platform.classification.features.FeatureValue instead.@Deprecated public class FeatureValue<V> extends Object implements Cloneable, Serializable
ProductFeature items directly.| Modifier | Constructor and Description |
|---|---|
|
FeatureValue(Feature<V> parent,
ProductFeature dbItem)
Deprecated.
|
protected |
FeatureValue(FeatureValue<V> src)
Deprecated.
|
|
FeatureValue(TypedFeature<V> parent,
V value)
Deprecated.
|
|
FeatureValue(UntypedFeature<V> parent,
V value)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureValue |
clone()
Deprecated.
|
protected Number |
createNumber(Number original,
double newValue)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
boolean |
equalsValue(FeatureValue<? extends Number> other,
double maxDifference)
Deprecated.
Special compare method for
Number features values only: this methods compares the actual number
value and checks it agains a given allowed difference. |
ClassificationAttributeUnit |
getClassificationAttributeUnit()
Deprecated.
use
getUnit() instead |
protected ProductFeature |
getDatabaseItem()
Deprecated.
|
String |
getDescription()
Deprecated.
|
Feature<V> |
getParent()
Deprecated.
|
ClassificationAttributeUnit |
getUnit()
Deprecated.
|
V |
getValue()
Deprecated.
|
V |
getValue(ClassificationAttributeUnit otherUnit)
Deprecated.
|
String |
getValueFormatted()
Deprecated.
|
String |
getValueFormatted(SessionContext ctx)
Deprecated.
|
int |
hashCode()
Deprecated.
|
void |
setClassificationAttributeUnit(ClassificationAttributeUnit unit)
Deprecated.
use
setUnit(ClassificationAttributeUnit) instead |
void |
setDescription(String description)
Deprecated.
|
void |
setUnit(ClassificationAttributeUnit unit)
Deprecated.
|
void |
setValue(V value)
Deprecated.
|
String |
toString()
Deprecated.
|
protected PK |
writeToDatabase(Language lang,
int featurePosition,
int valuePosition)
Deprecated.
|
public FeatureValue(UntypedFeature<V> parent, V value)
public FeatureValue(TypedFeature<V> parent, V value) throws JaloInvalidParameterException
JaloInvalidParameterExceptionprotected FeatureValue(FeatureValue<V> src)
public FeatureValue(Feature<V> parent, ProductFeature dbItem)
protected PK writeToDatabase(Language lang, int featurePosition, int valuePosition)
protected ProductFeature getDatabaseItem()
public boolean equalsValue(FeatureValue<? extends Number> other, double maxDifference)
Number features 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.other - the other feature value to compare its value tomaxDifference - the allowed differencepublic FeatureValue clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic ClassificationAttributeUnit getUnit()
public void setUnit(ClassificationAttributeUnit unit)
@Deprecated public ClassificationAttributeUnit getClassificationAttributeUnit()
getUnit() insteadClassificationAttributeUnit@Deprecated public void setClassificationAttributeUnit(ClassificationAttributeUnit unit)
setUnit(ClassificationAttributeUnit) insteadunit - public String getDescription()
public void setDescription(String description)
public V getValue()
public V getValue(ClassificationAttributeUnit otherUnit)
public String getValueFormatted()
public String getValueFormatted(SessionContext ctx)
public void setValue(V value)
Copyright © 2017 SAP SE. All Rights Reserved.