public interface PriceModel extends BaseModel
| Modifier and Type | Field and Description |
|---|---|
static PriceModel |
NO_PRICE
Value-Object to model the case, when no price information is available
|
| Modifier and Type | Method and Description |
|---|---|
PriceModel |
clone()
Clone is needed as the mock configurator implementation relies on clone to create new instances
|
String |
getCurrency() |
BigDecimal |
getPriceValue() |
boolean |
hasValidPrice()
Checks whether this is a valid price
|
void |
setCurrency(String currency) |
void |
setPriceValue(BigDecimal priceValue) |
getExtensionData, getExtensionMap, putExtensionData, setExtensionMapstatic final PriceModel NO_PRICE
void setCurrency(String currency)
currency - price currencyString getCurrency()
BigDecimal getPriceValue()
void setPriceValue(BigDecimal priceValue)
priceValue - price valuePriceModel clone()
boolean hasValidPrice()
true only if a NON-Zero price value and a currency are assignedCopyright © 2017 SAP SE. All Rights Reserved.