OSID Logo
OSID Specifications
room package
Version 3.0.0
Release Candidate Preview
Interfaceosid.room.BuildingForm
Implementsosid.OsidObjectForm
osid.OsidTemporalForm
Description

This is the form for creating and updating Buildings. Like all OsidForm objects, 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_ARGUMENT addressId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT addressId is null
CompliancemandatoryThis method must be implemented.
MethodclearAddress
Description

Clears the address.

ErrorsNO_ACCESS Metadata.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_ARGUMENT name is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT name is null
CompliancemandatoryThis method must be implemented.
MethodclearOfficialName
Description

Clears the official name.

ErrorsNO_ACCESS Metadata.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_ARGUMENT number is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT number is null
CompliancemandatoryThis method must be implemented.
MethodclearNumber
Description

Clears the building number.

ErrorsNO_ACCESS Metadata.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_ARGUMENT buildingId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT buildingId is null
CompliancemandatoryThis method must be implemented.
MethodclearEnclosingBuilding
Description

Clears the enclosing building.

ErrorsNO_ACCESS Metadata.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_ARGUMENT area is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearGrossArea
Description

Clears the area.

ErrorsNO_ACCESS Metadata.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_ARGUMENT buildingRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(buildingRecordType) is false
CompliancemandatoryThis method must be implemented.