OSID Logo
OSID Specifications
inventory shipment package
Version 3.1.0
Interfaceosid.inventory.shipment.Entry
Implementsosid.OsidObject
osid.Subjugateable
Used Byosid.inventory.shipment.EntryList
osid.inventory.shipment.ShipmentAdminSession
Description

An Entry is a part of a Shipment .

MethodgetStockId
Description

Gets the stock Id associated with this entry.

Returnosid.id.Id the stock Id
Compliancemandatory This method must be implemented.
MethodgetStock
Description

Gets the stock associated with this entry.

Returnosid.inventory.Stock the stock
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasModel
Description

Tests if this entry applied to a specific model.

Returnboolean true if applies to a specific model, false otherwise
Compliancemandatory This method must be implemented.
MethodgetModelId
Description

Gets the model Id associated with this entry.

Returnosid.id.Id the model Id
ErrorsILLEGAL_STATE hasModel() is false
Compliancemandatory This method must be implemented.
MethodgetModel
Description

Gets the model associated with this entry.

Returnosid.inventory.Model the model
ErrorsILLEGAL_STATE hasModel() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodhasItem
Description

Tests if this entry applied to a specific item.

Returnboolean true if applies to a specific item, false otherwise
Compliancemandatory This method must be implemented.
MethodgetItemId
Description

Gets the item Id associated with this entry.

Returnosid.id.Id the model Id
ErrorsILLEGAL_STATE hasModel() is false
Compliancemandatory This method must be implemented.
MethodgetItem
Description

Gets the item associated with this entry.

Returnosid.inventory.Item the item
ErrorsILLEGAL_STATE hasItem() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetQuantity
Description

Gets the quantity of the item.

Returndecimal the quantity
Compliancemandatory This method is must be implemented.
MethodgetUnitType
Description

Gets the units of the quantity.

Returnosid.type.Type the unit type
Compliancemandatory This method must be implemented.
MethodgetEntryRecord
Description

Gets the entry record corresponding to the given Entry record Type.This method is used to retrieve an object implementing the requested record. The entryRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(entryRecordType) is true.

Parametersosid.type.TypeentryRecordType the type of entry record to retrieve
Returnosid.inventory.shipment.records.EntryRecord the entry record
ErrorsNULL_ARGUMENT entryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(entryRecordType) is false
Compliancemandatory This method must be implemented.