java.lang.Object
de.hybris.platform.sap.productconfig.runtime.interf.model.impl.BaseModelImpl
de.hybris.platform.sap.productconfig.runtime.interf.model.impl.PriceModelImpl
All Implemented Interfaces:
BaseModel, PriceModel, Serializable, Cloneable
Direct Known Subclasses:
ZeroPriceModelImpl

public class PriceModelImpl extends BaseModelImpl implements PriceModel
Default implementation of the PriceModel
See Also:
  • Constructor Details

    • PriceModelImpl

      public PriceModelImpl()
  • Method Details

    • setCurrency

      public void setCurrency(String currency)
      Specified by:
      setCurrency in interface PriceModel
      Parameters:
      currency - price currency
    • getCurrency

      public String getCurrency()
      Specified by:
      getCurrency in interface PriceModel
      Returns:
      price currency
    • getPriceValue

      public BigDecimal getPriceValue()
      Specified by:
      getPriceValue in interface PriceModel
      Returns:
      price value
    • setPriceValue

      public void setPriceValue(BigDecimal priceValue)
      Specified by:
      setPriceValue in interface PriceModel
      Parameters:
      priceValue - price value
    • hashCode

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

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

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

      public boolean hasValidPrice()
      Description copied from interface: PriceModel
      Checks whether this is a valid price
      Specified by:
      hasValidPrice in interface PriceModel
      Returns:
      true only if a NON-Zero price value and a currency are assigned
    • hasNoCurrency

      protected boolean hasNoCurrency()
    • hasNoPrice

      protected boolean hasNoPrice()
    • getObsoletePriceValue

      public BigDecimal getObsoletePriceValue()
      Specified by:
      getObsoletePriceValue in interface PriceModel
      Returns:
      old price without discount
    • setObsoletePriceValue

      public void setObsoletePriceValue(BigDecimal strikeThroughValue)
      Specified by:
      setObsoletePriceValue in interface PriceModel
      Parameters:
      strikeThroughValue - old price without discount