public interface Ingredient extends OsidObject, Subjugateable
An Ingredient
represents an item used in a
Recipe.
Ingredients
reference an inventory
Stock
item that represents a class of Items
defined
in the Inventory OSID. An Ingreient
specifies the quantity
required.
Modifier and Type | Method and Description |
---|---|
IngredientRecord |
getIngredientRecord(Type ingredientRecordType)
Gets the ingredient record corresponding to the given
Ingredient record Type. |
java.math.BigDecimal |
getQuantity()
Gets the quantity of items.
|
Stock |
getStock()
Get the stock.
|
Id |
getStockId()
Gets the
Id of the Stock. |
Type |
getUnitType()
Gets the units of the quantity.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
java.math.BigDecimal getQuantity()
mandatory
- This method must be implemented. Type getUnitType()
mandatory
- This method must be implemented. Id getStockId()
Id
of the Stock.
Id
mandatory
- This method must be implemented. Stock getStock() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IngredientRecord getIngredientRecord(Type ingredientRecordType) throws OperationFailedException, PermissionDeniedException
Ingredient
record Type.
This method is used to
retrieve an object implementing the requested record. The
ingredientRecordType
may be the Type
returned
in getRecordType(ingredientRecordType)
is true
.ingredientRecordType
- the type of ingredient record to retrieveNullArgumentException
- ingredientRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
hasRecordType(ingredientRecordType)
is false
mandatory
- This method must be implemented.