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,Serializable,Cloneable
Default implementation of the
CsticValueModel.- See Also:
-
Field Summary
Fields inherited from class de.hybris.platform.sap.productconfig.runtime.interf.model.impl.BaseModelImpl
DEFAULT_ARRAY_LIST_CAPACITYFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancompareName(CsticValueModelImpl other) booleanGet the long text description for a cstic value, which will be displayed under the cstic name in the UIgetName()inthashCode()booleanbooleanbooleanvoidvoidsetAuthorExternal(String authorExternal) voidsetDeltaPrice(PriceModel deltaPrice) voidsetDomainValue(boolean domainValue) voidsetLanguageDependentName(String languageDependentName) voidsetLongText(String longText) Set the long text, which will be displayed under the Cstic value name in the UIvoidsetMessages(Set<ProductConfigMessage> messages) voidvoidsetNumeric(boolean b) voidsetSelectable(boolean selectable) voidsetValuePrice(PriceModel valuePrice) toString()
-
Constructor Details
-
CsticValueModelImpl
public CsticValueModelImpl()
-
-
Method Details
-
isNumeric
public boolean isNumeric()- Specified by:
isNumericin interfaceCsticValueModel- Returns:
- Characteristic value is of numeric type
-
getName
- Specified by:
getNamein interfaceCsticValueModel- Returns:
- the characteristic value name
-
setName
- Specified by:
setNamein interfaceCsticValueModel- Parameters:
name- characteristic value name
-
getLanguageDependentName
- Specified by:
getLanguageDependentNamein interfaceCsticValueModel- Returns:
- the language dependent characteristic value name
-
setLanguageDependentName
- 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
-
hashCode
public int hashCode() -
equals
-
compareName
-
getAuthor
- Specified by:
getAuthorin interfaceCsticValueModel- Returns:
- the characteristic value author
-
setAuthor
- 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
- Specified by:
getAuthorExternalin interfaceCsticValueModel- Returns:
- the external characteristic value author - engine representation
-
setAuthorExternal
- Specified by:
setAuthorExternalin interfaceCsticValueModel- Parameters:
authorExternal- external characteristic value author - engine representation
-
getDeltaPrice
- Specified by:
getDeltaPricein interfaceCsticValueModel- Returns:
- the delta price for this option, compared to the selected option
-
setDeltaPrice
- Specified by:
setDeltaPricein interfaceCsticValueModel- Parameters:
deltaPrice- delta price for this option, compared to the selected option
-
getValuePrice
- Specified by:
getValuePricein interfaceCsticValueModel- Returns:
- the absolute value price for this option
-
setValuePrice
- 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
- Specified by:
getMessagesin interfaceCsticValueModel- Returns:
- messages valid for this characteristic value
-
setMessages
- Specified by:
setMessagesin interfaceCsticValueModel- Parameters:
messages- valid for this characteristic value
-
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
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
-