OSID Logo
OSID Specifications
room package
Version 3.0.0
Interfaceosid.room.BuildingForm
Implementsosid.OsidObjectForm
osid.OsidTemporalForm
Implemented Byosid.room.batch.BuildingBatchForm
Used Byosid.room.BuildingAdminSession
Description

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

MethodgetAddressMetadata
Description

Gets the metadata for an address.

Returnosid.Metadatametadata for the address
CompliancemandatoryThis method must be implemented.
MethodsetAddress
Description

Sets the address.

Parametersosid.id.IdaddressIdthe new address
ErrorsINVALID_ARGUMENTaddressId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTaddressId is null
CompliancemandatoryThis method must be implemented.
MethodclearAddress
Description

Clears the address.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetOfficialNameMetadata
Description

Gets the metadata for an official name.

Returnosid.Metadatametadata for the official name
CompliancemandatoryThis method must be implemented.
MethodsetOfficialName
Description

Sets the official name.

Parametersstringnamethe new name
ErrorsINVALID_ARGUMENTname is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTname is null
CompliancemandatoryThis method must be implemented.
MethodclearOfficialName
Description

Clears the official name.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetNumberMetadata
Description

Gets the metadata for a number.

Returnosid.Metadatametadata for the number
CompliancemandatoryThis method must be implemented.
MethodsetNumber
Description

Sets the building number.

Parametersstringnumberthe new number
ErrorsINVALID_ARGUMENTnumber is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTnumber is null
CompliancemandatoryThis method must be implemented.
MethodclearNumber
Description

Clears the building number.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetEnclosingBuildingMetadata
Description

Gets the metadata for an enclosing building.

Returnosid.Metadatametadata for the enclosing building
CompliancemandatoryThis method must be implemented.
MethodsetEnclosingBuilding
Description

Sets the enclosing building.

Parametersosid.id.IdbuildingIdthe new enclosing building
ErrorsINVALID_ARGUMENTbuildingId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTbuildingId is null
CompliancemandatoryThis method must be implemented.
MethodclearEnclosingBuilding
Description

Clears the enclosing building.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetGrossAreaMetadata
Description

Gets the metadata for the gross area.

Returnosid.Metadatametadata for the area
CompliancemandatoryThis method must be implemented.
MethodsetGrossArea
Description

Sets the gross area.

Parametersdecimalareathe new area
ErrorsINVALID_ARGUMENTarea is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearGrossArea
Description

Clears the area.

ErrorsNO_ACCESSMetadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetBuildingFormRecord
Description

Gets the BuildingFormRecord corresponding to the given building record Type .

Parametersosid.type.TypebuildingRecordTypethe building record type
Returnosid.room.records.BuildingFormRecordthe building form record
ErrorsNULL_ARGUMENTbuildingRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(buildingRecordType) is false
CompliancemandatoryThis method must be implemented.