Class CsticValueModelImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.runtime.interf.model.impl.BaseModelImpl
-
- de.hybris.platform.sap.productconfig.runtime.interf.model.impl.CsticValueModelImpl
-
- All Implemented Interfaces:
BaseModel,CsticValueModel,java.lang.Cloneable
public class CsticValueModelImpl extends BaseModelImpl implements CsticValueModel
Default implementation of theCsticValueModel.
-
-
Field Summary
-
Fields inherited from interface de.hybris.platform.sap.productconfig.runtime.interf.model.CsticValueModel
AUTHOR_EXTERNAL_DEFAULT, AUTHOR_EXTERNAL_USER, AUTHOR_SYSTEM, AUTHOR_USER, TRUE
-
-
Constructor Summary
Constructors Constructor Description CsticValueModelImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancompareName(CsticValueModelImpl other)booleanequals(java.lang.Object obj)java.lang.StringgetAuthor()java.lang.StringgetAuthorExternal()PriceModelgetDeltaPrice()java.lang.StringgetLanguageDependentName()java.lang.StringgetLongText()Get the long text description for a cstic value, which will be displayed under the cstic name in the UIjava.util.Set<ProductConfigMessage>getMessages()java.lang.StringgetName()PriceModelgetValuePrice()inthashCode()booleanisDomainValue()booleanisNumeric()booleanisSelectable()voidsetAuthor(java.lang.String author)voidsetAuthorExternal(java.lang.String authorExternal)voidsetDeltaPrice(PriceModel deltaPrice)voidsetDomainValue(boolean domainValue)voidsetLanguageDependentName(java.lang.String languageDependentName)voidsetLongText(java.lang.String longText)Set the long text, which will be displayed under the Cstic value name in the UIvoidsetMessages(java.util.Set<ProductConfigMessage> messages)voidsetName(java.lang.String name)voidsetNumeric(boolean b)voidsetSelectable(boolean selectable)voidsetValuePrice(PriceModel valuePrice)java.lang.StringtoString()
-
-
-
Method Detail
-
isNumeric
public boolean isNumeric()
- Specified by:
isNumericin interfaceCsticValueModel- Returns:
- Characteristic value is of numeric type
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceCsticValueModel- Returns:
- the characteristic value name
-
setName
public void setName(java.lang.String name)
- Specified by:
setNamein interfaceCsticValueModel- Parameters:
name- characteristic value name
-
getLanguageDependentName
public java.lang.String getLanguageDependentName()
- Specified by:
getLanguageDependentNamein interfaceCsticValueModel- Returns:
- the language dependent characteristic value name
-
setLanguageDependentName
public void setLanguageDependentName(java.lang.String languageDependentName)
- Specified by:
setLanguageDependentNamein interfaceCsticValueModel- Parameters:
languageDependentName- language dependent characteristic value name
-
isDomainValue
public boolean isDomainValue()
- Specified by:
isDomainValuein interfaceCsticValueModel- Returns:
- true if the value is a domain value
-
setDomainValue
public void setDomainValue(boolean domainValue)
- Specified by:
setDomainValuein interfaceCsticValueModel- Parameters:
domainValue- flag indicating whether this value is a domain value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareName
protected boolean compareName(CsticValueModelImpl other)
-
getAuthor
public java.lang.String getAuthor()
- Specified by:
getAuthorin interfaceCsticValueModel- Returns:
- the characteristic value author
-
setAuthor
public void setAuthor(java.lang.String author)
- Specified by:
setAuthorin interfaceCsticValueModel- Parameters:
author- characteristic value author
-
isSelectable
public boolean isSelectable()
- Specified by:
isSelectablein interfaceCsticValueModel- Returns:
- true if the value is selectable
-
setSelectable
public void setSelectable(boolean selectable)
- Specified by:
setSelectablein interfaceCsticValueModel- Parameters:
selectable- Flag indicating whether this value is selectable. Not supported in all provider implementations, we don't set in the current SSC implementation.
-
getAuthorExternal
public java.lang.String getAuthorExternal()
- Specified by:
getAuthorExternalin interfaceCsticValueModel- Returns:
- the external characteristic value author - engine representation
-
setAuthorExternal
public void setAuthorExternal(java.lang.String authorExternal)
- Specified by:
setAuthorExternalin interfaceCsticValueModel- Parameters:
authorExternal- external characteristic value author - engine representation
-
getDeltaPrice
public PriceModel getDeltaPrice()
- Specified by:
getDeltaPricein interfaceCsticValueModel- Returns:
- the delta price for this option, compared to the selected option
-
setDeltaPrice
public void setDeltaPrice(PriceModel deltaPrice)
- Specified by:
setDeltaPricein interfaceCsticValueModel- Parameters:
deltaPrice- delta price for this option, compared to the selected option
-
getValuePrice
public PriceModel getValuePrice()
- Specified by:
getValuePricein interfaceCsticValueModel- Returns:
- the absolute value price for this option
-
setValuePrice
public void setValuePrice(PriceModel valuePrice)
- Specified by:
setValuePricein interfaceCsticValueModel- Parameters:
valuePrice- absolute value price for this option
-
setNumeric
public void setNumeric(boolean b)
- Specified by:
setNumericin interfaceCsticValueModel- Parameters:
b- Characteristic value is of numeric type
-
getMessages
public java.util.Set<ProductConfigMessage> getMessages()
- Specified by:
getMessagesin interfaceCsticValueModel- Returns:
- messages valid for this characteristic value
-
setMessages
public void setMessages(java.util.Set<ProductConfigMessage> messages)
- Specified by:
setMessagesin interfaceCsticValueModel- Parameters:
messages- valid for this characteristic value
-
getLongText
public java.lang.String getLongText()
Description copied from interface:CsticValueModelGet the long text description for a cstic value, which will be displayed under the cstic name in the UI- Specified by:
getLongTextin interfaceCsticValueModel- Returns:
- The long text value
-
setLongText
public void setLongText(java.lang.String longText)
Description copied from interface:CsticValueModelSet the long text, which will be displayed under the Cstic value name in the UI- Specified by:
setLongTextin interfaceCsticValueModel- Parameters:
longText- Description for the cstic
-
-