Holds information about a simple QBiC service product. This class is abstract and needs to be subclassed in order to create in instance of it.
| Type | Name and description |
|---|---|
java.util.Currency |
currencyThe currency of the price |
java.lang.String |
descriptionSome text describing what the the product providing. |
ProductId |
productIdThe Id of the product. |
java.lang.String |
productNameA descriptive product name. |
ProductUnit |
unitThe unit of the product. |
double |
unitPriceThe unit price in €/unit. |
| Constructor and description |
|---|
Product
(java.lang.String name, java.lang.String description, double unitPrice, ProductUnit unit, ProductId productId)Basic product constructor. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The currency of the price
Some text describing what the the product providing.
The Id of the product.
A descriptive product name.
The unit of the product.
The unit price in €/unit.
Basic product constructor. Checks that all passed arguments except productId are not null.
name - The name of the product.description - The description of what the product is about.unitPrice - The price in € per unitunit - The product unitproductId - The Id of the productGroovy Documentation