Interface Entry
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
An Entry is a part of a Shipment .
-
Method Summary
Modifier and TypeMethodDescriptiongetEntryRecord(Type entryRecordType) Gets the entry record corresponding to the givenEntryrecordType.This method is used to retrieve an object implementing the requested record.getItem()Gets the item associated with this entry.Gets the itemIdassociated with this entry.getModel()Gets the model associated with this entry.Gets the modelIdassociated with this entry.Gets the quantity of the item.getStock()Gets the stock associated with this entry.Gets the stockIdassociated with this entry.Gets the units of the quantity.booleanhasItem()Tests if this entry applied to a specific item.booleanhasModel()Tests if this entry applied to a specific model.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getStockId
Id getStockId()Gets the stockIdassociated with this entry.- Returns:
- the stock
Id - Compliance:
mandatory- This method must be implemented.
-
getStock
Gets the stock associated with this entry.- Returns:
- the stock
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasModel
boolean hasModel()Tests if this entry applied to a specific model.- Returns:
trueif applies to a specific model,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getModelId
Id getModelId()Gets the modelIdassociated with this entry.- Returns:
- the model
Id - Throws:
IllegalStateException-hasModel()isfalse- Compliance:
mandatory- This method must be implemented.
-
getModel
Gets the model associated with this entry.- Returns:
- the model
- Throws:
IllegalStateException-hasModel()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasItem
boolean hasItem()Tests if this entry applied to a specific item.- Returns:
trueif applies to a specific item,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getItemId
Id getItemId()Gets the itemIdassociated with this entry.- Returns:
- the model
Id - Throws:
IllegalStateException-hasModel()isfalse- Compliance:
mandatory- This method must be implemented.
-
getItem
Gets the item associated with this entry.- Returns:
- the item
- Throws:
IllegalStateException-hasItem()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getQuantity
BigDecimal getQuantity()Gets the quantity of the item.- Returns:
- the quantity
- Compliance:
mandatory- This method is must be implemented.
-
getUnitType
Type getUnitType()Gets the units of the quantity.- Returns:
- the unit type
- Compliance:
mandatory- This method must be implemented.
-
getEntryRecord
Gets the entry record corresponding to the givenEntryrecordType.This method is used to retrieve an object implementing the requested record. TheentryRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(entryRecordType)istrue.- Parameters:
entryRecordType- the type of entry record to retrieve- Returns:
- the entry record
- Throws:
NullArgumentException-entryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(entryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-