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

public class CsticValueModelImpl extends BaseModelImpl implements CsticValueModel
Default implementation of the CsticValueModel.
See Also:
  • Constructor Details

    • CsticValueModelImpl

      public CsticValueModelImpl()
  • Method Details

    • isNumeric

      public boolean isNumeric()
      Specified by:
      isNumeric in interface CsticValueModel
      Returns:
      Characteristic value is of numeric type
    • getName

      public String getName()
      Specified by:
      getName in interface CsticValueModel
      Returns:
      the characteristic value name
    • setName

      public void setName(String name)
      Specified by:
      setName in interface CsticValueModel
      Parameters:
      name - characteristic value name
    • getLanguageDependentName

      public String getLanguageDependentName()
      Specified by:
      getLanguageDependentName in interface CsticValueModel
      Returns:
      the language dependent characteristic value name
    • setLanguageDependentName

      public void setLanguageDependentName(String languageDependentName)
      Specified by:
      setLanguageDependentName in interface CsticValueModel
      Parameters:
      languageDependentName - language dependent characteristic value name
    • isDomainValue

      public boolean isDomainValue()
      Specified by:
      isDomainValue in interface CsticValueModel
      Returns:
      true if the value is a domain value
    • setDomainValue

      public void setDomainValue(boolean domainValue)
      Specified by:
      setDomainValue in interface CsticValueModel
      Parameters:
      domainValue - flag indicating whether this value is a domain value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareName

      protected boolean compareName(CsticValueModelImpl other)
    • getAuthor

      public String getAuthor()
      Specified by:
      getAuthor in interface CsticValueModel
      Returns:
      the characteristic value author
    • setAuthor

      public void setAuthor(String author)
      Specified by:
      setAuthor in interface CsticValueModel
      Parameters:
      author - characteristic value author
    • isSelectable

      public boolean isSelectable()
      Specified by:
      isSelectable in interface CsticValueModel
      Returns:
      true if the value is selectable
    • setSelectable

      public void setSelectable(boolean selectable)
      Specified by:
      setSelectable in interface CsticValueModel
      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 String getAuthorExternal()
      Specified by:
      getAuthorExternal in interface CsticValueModel
      Returns:
      the external characteristic value author - engine representation
    • setAuthorExternal

      public void setAuthorExternal(String authorExternal)
      Specified by:
      setAuthorExternal in interface CsticValueModel
      Parameters:
      authorExternal - external characteristic value author - engine representation
    • getDeltaPrice

      public PriceModel getDeltaPrice()
      Specified by:
      getDeltaPrice in interface CsticValueModel
      Returns:
      the delta price for this option, compared to the selected option
    • setDeltaPrice

      public void setDeltaPrice(PriceModel deltaPrice)
      Specified by:
      setDeltaPrice in interface CsticValueModel
      Parameters:
      deltaPrice - delta price for this option, compared to the selected option
    • getValuePrice

      public PriceModel getValuePrice()
      Specified by:
      getValuePrice in interface CsticValueModel
      Returns:
      the absolute value price for this option
    • setValuePrice

      public void setValuePrice(PriceModel valuePrice)
      Specified by:
      setValuePrice in interface CsticValueModel
      Parameters:
      valuePrice - absolute value price for this option
    • setNumeric

      public void setNumeric(boolean b)
      Specified by:
      setNumeric in interface CsticValueModel
      Parameters:
      b - Characteristic value is of numeric type
    • getMessages

      public Set<ProductConfigMessage> getMessages()
      Specified by:
      getMessages in interface CsticValueModel
      Returns:
      messages valid for this characteristic value
    • setMessages

      public void setMessages(Set<ProductConfigMessage> messages)
      Specified by:
      setMessages in interface CsticValueModel
      Parameters:
      messages - valid for this characteristic value
    • getLongText

      public String getLongText()
      Description copied from interface: CsticValueModel
      Get the long text description for a cstic value, which will be displayed under the cstic name in the UI
      Specified by:
      getLongText in interface CsticValueModel
      Returns:
      The long text value
    • setLongText

      public void setLongText(String longText)
      Description copied from interface: CsticValueModel
      Set the long text, which will be displayed under the Cstic value name in the UI
      Specified by:
      setLongText in interface CsticValueModel
      Parameters:
      longText - Description for the cstic