OSID Logo
OSID Specifications
inventory package
Version 3.1.0
Interfaceosid.inventory.ModelForm
Implementsosid.OsidObjectForm
Implemented Byosid.inventory.batch.ModelBatchForm
Used Byosid.inventory.ModelAdminSession
Description

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

MethodgetManufacturerMetadata
Description

Gets the metadata for the manufacturer.

Returnosid.Metadata metadata for the manufacturer
Compliancemandatory This method must be implemented.
MethodsetManufacturer
Description

Sets the manufacturer.

Parametersosid.id.IdresourceId the new resource
ErrorsINVALID_ARGUMENT resourceId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearManufacturer
Description

Removes the manufacturer.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetArchetypeMetadata
Description

Gets the metadata for the archetype.

Returnosid.Metadata metadata for the archetype
Compliancemandatory This method must be implemented.
MethodsetArchetype
Description

Sets the archetype.

Parametersstringarchetype the new archetype
ErrorsINVALID_ARGUMENT archetype is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT archetype is null
Compliancemandatory This method must be implemented.
MethodclearArchetype
Description

Removes the archetype.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetNumberMetadata
Description

Gets the metadata for the model number.

Returnosid.Metadata metadata for the model number
Compliancemandatory This method must be implemented.
MethodsetNumber
Description

Sets the model number.

Parametersstringnumber the new model number
ErrorsINVALID_ARGUMENT number is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT number is null
Compliancemandatory This method must be implemented.
MethodclearNumber
Description

Removes the model number.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetModelFormRecord
Description

Gets the ModelFormRecord corresponding to the given model record Type.

Parametersosid.type.TypemodelRecordType a model record type
Returnosid.inventory.records.ModelFormRecord the model form record
ErrorsNULL_ARGUMENT modelRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(modelRecordType) is false
Compliancemandatory This method must be implemented.