OSID Logo
OSID Specifications
room package
Version 3.1.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.Metadata metadata for the address
Compliancemandatory This method must be implemented.
MethodsetAddress
Description

Sets the address.

Parametersosid.id.IdaddressId the new address
ErrorsINVALID_ARGUMENT addressId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT addressId is null
Compliancemandatory This method must be implemented.
MethodclearAddress
Description

Clears the address.

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

Gets the metadata for an official name.

Returnosid.Metadata metadata for the official name
Compliancemandatory This method must be implemented.
MethodsetOfficialName
Description

Sets the official name.

Parametersstringname the new name
ErrorsINVALID_ARGUMENT name is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT name is null
Compliancemandatory This method must be implemented.
MethodclearOfficialName
Description

Clears the official name.

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

Gets the metadata for a number.

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

Sets the building number.

Parametersstringnumber the new 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

Clears the building number.

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

Gets the metadata for an enclosing building.

Returnosid.Metadata metadata for the enclosing building
Compliancemandatory This method must be implemented.
MethodsetEnclosingBuilding
Description

Sets the enclosing building.

Parametersosid.id.IdbuildingId the new enclosing building
ErrorsINVALID_ARGUMENT buildingId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT buildingId is null
Compliancemandatory This method must be implemented.
MethodclearEnclosingBuilding
Description

Clears the enclosing building.

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

Gets the metadata for the gross area.

Returnosid.Metadata metadata for the area
Compliancemandatory This method must be implemented.
MethodsetGrossArea
Description

Sets the gross area.

Parametersdecimalarea the new area
ErrorsINVALID_ARGUMENT area is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearGrossArea
Description

Clears the area.

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

Gets the BuildingFormRecord corresponding to the given building record Type.

Parametersosid.type.TypebuildingRecordType the building record type
Returnosid.room.records.BuildingFormRecord the building form record
ErrorsNULL_ARGUMENT buildingRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(buildingRecordType) is false
Compliancemandatory This method must be implemented.