public interface Stock extends OsidObject, Federateable
A Stock
represents a kit and kaboodle.
Modifier and Type | Method and Description |
---|---|
DisplayText |
getLocationDescription()
Gets the location description in which this stock is located.
|
IdList |
getLocationIds()
Gets the location
Id to which this stock is located. |
LocationList |
getLocations()
Gets the location to which this stock is located.
|
IdList |
getModelIds()
Gets the model
Ids of the items in this stock. |
ModelList |
getModels()
Gets the models of the items in this stock.
|
java.lang.String |
getSKU()
Gets the sku for this class of items.
|
StockRecord |
getStockRecord(Type stockRecordType)
Gets the stock record corresponding to the given
Stock
record Type. |
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
java.lang.String getSKU()
mandatory
- This method must be implemented. IdList getModelIds()
Ids
of the items in this stock. Ids
mandatory
- This method must be implemented. ModelList getModels() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. DisplayText getLocationDescription()
mandatory
- This method must be implemented. IdList getLocationIds()
Id
to which this stock is located. Id
mandatory
- This method must be implemented. LocationList getLocations() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. StockRecord getStockRecord(Type stockRecordType) throws OperationFailedException
Stock
record Type.
This method is used to retrieve an object
implementing the requested record. The stockRecordType
may be the Type
returned in getRecordTypes()
or any of its parents in a Type
hierarchy where
hasRecordType(stockRecordType)
is true
.stockRecordType
- the type of stock record to retrieveNullArgumentException
- stockRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(stockRecordType)
is false
mandatory
- This method must be implemented.