public interface Item extends OsidObject
An Item
represents a particular item.
Modifier and Type | Method and Description |
---|---|
Item |
getItem()
Gets the item to which this item belongs.
|
Id |
getItemId()
Gets the item
Id to which this item belongs. |
ItemRecord |
getItemRecord(Type itemRecordType)
Gets the item record corresponding to the given
Item
record Type. |
Location |
getLocation()
Gets the location to which this item belongs.
|
DisplayText |
getLocationDescription()
Gets a display string for the location.
|
Id |
getLocationId()
Gets the location
Id to which this item belongs. |
java.lang.String |
getPropertyTag()
Gets the property identification number for this item.
|
java.lang.String |
getSerialNumber()
Gets the serial number for this item.
|
Stock |
getStock()
Gets the stock to which this item belongs.
|
Id |
getStockId()
Gets the stock
Id to which this item belongs. |
boolean |
hasLocation()
Tests if this item has a known location.
|
boolean |
isPart()
Tests if this item is a part of another item.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
Id getStockId()
Id
to which this item belongs. Id
mandatory
- This method must be implemented. Stock getStock() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. java.lang.String getPropertyTag()
mandatory
- This method must be implemented. java.lang.String getSerialNumber()
mandatory
- This method must be implemented. DisplayText getLocationDescription()
mandatory
- This method must be implemented. boolean hasLocation()
true
if a location is associated with this
item, false
otherwisemandatory
- This method must be implemented. Id getLocationId()
Id
to which this item belongs. Id
IllegalStateException
- hasLocation()
is
false
mandatory
- This method must be implemented. Location getLocation() throws OperationFailedException
IllegalStateException
- hasLocation()
is
false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean isPart()
true
if this item is a part of another item,
false
otherwisemandatory
- This method must be implemented. Id getItemId()
Id
to which this item belongs. Id
IllegalStateException
- isPart()
is
false
mandatory
- This method must be implemented. Item getItem() throws OperationFailedException
IllegalStateException
- isPart()
is
false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. ItemRecord getItemRecord(Type itemRecordType) throws OperationFailedException
Item
record Type.
This method is used to retrieve an object
implementing the requested record. The itemRecordType
may be the Type
returned in getRecordTypes()
or any of its parents in a Type
hierarchy where
hasRecordType(itemRecordType)
is true
.itemRecordType
- the type of item record to retrieveNullArgumentException
- itemRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(itemRecordType)
is false
mandatory
- This method must be implemented.