OSID Logo
OSID Specifications
inventory shipment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inventory.shipment.EntryForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Description

This is the form for creating and updating Entries. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the EntryAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetModelMetadata
Description

Gets the metadata for a model.

Returnosid.Metadatametadata for the model
CompliancemandatoryThis method must be implemented.
MethodsetModel
Description

Sets the model.

Parametersosid.id.IdmodelIdthe new model
ErrorsINVALID_ARGUMENT modelId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT modelId is null
CompliancemandatoryThis method must be implemented.
MethodclearModel
Description

Removes the model.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetItemMetadata
Description

Gets the metadata for an item.

Returnosid.Metadatametadata for the item
CompliancemandatoryThis method must be implemented.
MethodsetItem
Description

Sets the item.

Parametersosid.id.IditemIdthe new item
ErrorsINVALID_ARGUMENT itemId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT itemId is null
CompliancemandatoryThis method must be implemented.
MethodclearItem
Description

Removes the item.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetQuantityMetadata
Description

Gets the metadata for the quantity.

Returnosid.Metadatametadata for the quantity
CompliancemandatoryThis method must be implemented.
MethodsetQuantity
Description

Sets the quantity.

Parametersdecimalquantitythe new quantity
ErrorsINVALID_ARGUMENT quantity is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearQuantity
Description

Removes the quantity.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetUnitTypeMetadata
Description

Gets the metadata for the unit type.

Returnosid.Metadatametadata for the unit type
CompliancemandatoryThis method must be implemented.
MethodsetUnitType
Description

Sets the unit type.

Parametersosid.type.Typetypethe new unit type
ErrorsINVALID_ARGUMENT type is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT type is null
CompliancemandatoryThis method must be implemented.
MethodclearUnitType
Description

Removes the unit type.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetEntryFormRecord
Description

Gets the EntryFormRecord corresponding to the given entry record Type.

Parametersosid.type.TypeentryRecordTypean entry record type
Returnosid.inventory.shipment.records.EntryFormRecordthe entry form record
ErrorsNULL_ARGUMENT entryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(entryRecordType) is false
CompliancemandatoryThis method must be implemented.