Interface Item
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
An Item represents a specific managed item in a warehouse.
-
Method Summary
Modifier and TypeMethodDescriptiongetItem()Gets the item to which this item belongs.Gets the itemIdto which this item belongs.getItemRecord(Type itemRecordType) Gets the item record corresponding to the givenItemrecordType.This method is used to retrieve an object implementing the requested record.Gets the location to which this item belongs.Gets a display text for the location.Gets the locationIdto which this item belongs.Gets the property identification number for this item.Gets the serial number for this item.getStock()Gets the stock to which this item belongs.Gets the stockIdto which this item belongs.booleanTests if this item has a known location.booleanisPart()Tests if this item is a part of another item.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 stockIdto which this item belongs.- Returns:
- a stock
Id - Compliance:
mandatory- This method must be implemented.
-
getStock
Gets the stock to which this item belongs.- Returns:
- a stock
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getPropertyTag
String getPropertyTag()Gets the property identification number for this item.- Returns:
- a property tag
- Compliance:
mandatory- This method must be implemented.
-
getSerialNumber
String getSerialNumber()Gets the serial number for this item.- Returns:
- a serial number
- Compliance:
mandatory- This method must be implemented.
-
getLocationDescription
DisplayText getLocationDescription()Gets a display text for the location.- Returns:
- a location descrption
- Compliance:
mandatory- This method must be implemented.
-
hasLocation
boolean hasLocation()Tests if this item has a known location.- Returns:
trueif a location is associated with this item,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLocationId
Id getLocationId()Gets the locationIdto which this item belongs.- Returns:
- a location
Id - Throws:
IllegalStateException-hasLocation()isfalse- Compliance:
mandatory- This method must be implemented.
-
getLocation
Gets the location to which this item belongs.- Returns:
- a location
- Throws:
IllegalStateException-hasLocation()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isPart
boolean isPart()Tests if this item is a part of another item.- Returns:
trueif this item is a part of another item,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getItemId
Id getItemId()Gets the itemIdto which this item belongs.- Returns:
- an item
Id - Throws:
IllegalStateException-isPart()isfalse- Compliance:
mandatory- This method must be implemented.
-
getItem
Gets the item to which this item belongs.- Returns:
- an item
- Throws:
IllegalStateException-isPart()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getItemRecord
Gets the item record corresponding to the givenItemrecordType.This method is used to retrieve an object implementing the requested record. TheitemRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(itemRecordType)istrue.- Parameters:
itemRecordType- the type of item record to retrieve- Returns:
- the item record
- Throws:
NullArgumentException-itemRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(itemRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-