OSID Logo
OSID Specifications
room package
Version 3.1.0
Interfaceosid.room.BuildingQuery
Implementsosid.OsidObjectQuery
osid.OsidTemporalQuery
Used Byosid.room.BuildingQuery
osid.room.BuildingQuerySession
osid.room.BuildingSearchSession
osid.room.BuildingSmartCampusSession
osid.room.CampusQuery
osid.room.FloorQuery
osid.room.RoomQuery
osid.room.construction.ProjectQuery
osid.room.squatting.DeedQuery
Description

This is the query for searching for buildings. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchAddressId
Description

Sets an address Id.

Parametersosid.id.IdaddressId an address Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT addressId is null
Compliancemandatory This method must be implemented.
MethodclearAddressIdTerms
Description

Clears the address Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAddressQuery
Description

Tests if an AddressQuery is available.

Returnboolean true if an address query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAddressQuery
Description

Gets the query for an address query. Multiple retrievals produce a nested OR term.

Returnosid.contact.AddressQuery the address query
ErrorsUNIMPLEMENTED supportsAddressQuery() is false
Complianceoptional This method must be implemented if supportsAddressQuery() is true.
MethodmatchAnyAddress
Description

Matches any address.

Parametersbooleanmatch true to match buildings with any address, false to match buildings with no address
Compliancemandatory This method must be implemented.
MethodclearAddressTerms
Description

Clears the address terms.

Compliancemandatory This method must be implemented.
MethodmatchOfficialName
Description

Sets a name.

Parametersstringname an official name
osid.type.TypestringMatchType a string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT name is not of stringMatchType
NULL_ARGUMENT name is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnyOfficialName
Description

Matches any official name.

Parametersbooleanmatch true to match buildings with any official name, false to match buildings with no official name
Compliancemandatory This method must be implemented.
MethodclearOfficialNameTerms
Description

Clears the official name terms.

Compliancemandatory This method must be implemented.
MethodmatchNumber
Description

Sets a bulding number.

Parametersstringnumber a number
osid.type.TypestringMatchType a string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT number is not of stringMatchType
NULL_ARGUMENT number is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnyNumber
Description

Matches any building number.

Parametersbooleanmatch true to match buildings with any number, false to match buildings with no number
Compliancemandatory This method must be implemented.
MethodclearNumberTerms
Description

Clears the building number terms.

Compliancemandatory This method must be implemented.
MethodmatchEnclosingBuildingId
Description

Sets a building Id.

Parametersosid.id.IdbuildingId a building Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT addressId is null
Compliancemandatory This method must be implemented.
MethodclearEnclosingBuildingIdTerms
Description

Clears the building Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsEnclosingBuildingQuery
Description

Tests if a BuildingQuery is available.

Returnboolean true if a building query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetEnclosingBuildingQuery
Description

Gets the query for a building query. Multiple retrievals produce a nested OR term.

Returnosid.room.BuildingQuery the building query
ErrorsUNIMPLEMENTED supportsEnclosingBuildingQuery() is false
Complianceoptional This method must be implemented if supportsEnclosingBuildingQuery() is true.
MethodmatchAnyEnclosingBuilding
Description

Matches any building.

Parametersbooleanmatch true to match buildings with any enclosing building, false to match buildings with no enclosing building
Compliancemandatory This method must be implemented.
MethodclearEnclosingBuildingTerms
Description

Clears the enclosing building terms.

Compliancemandatory This method must be implemented.
MethodmatchGrossArea
Description

Matches an area within the given range inclusive.

Parametersdecimallow start of range
decimalhigh end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
Compliancemandatory This method must be implemented.
MethodmatchAnyGrossArea
Description

Matches any area.

Parametersbooleanmatch true to match buildings with any area, false to match buildings with no area assigned
Compliancemandatory This method must be implemented.
MethodclearGrossAreaTerms
Description

Clears the area terms.

Compliancemandatory This method must be implemented.
MethodmatchRoomId
Description

Sets the room Id for this query to match rooms assigned to buildings.

Parametersosid.id.IdroomId a room Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT roomId is null
Compliancemandatory This method must be implemented.
MethodclearRoomIdTerms
Description

Clears the room Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsRoomQuery
Description

Tests if a room query is available.

Returnboolean true if a room query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRoomQuery
Description

Gets the query for a building.

Returnosid.room.RoomQuery the room query
ErrorsUNIMPLEMENTED supportsRoomQuery() is false
Complianceoptional This method must be implemented if supportsRoomQuery() is true.
MethodmatchAnyRoom
Description

Matches buildings with any room.

Parametersbooleanmatch true to match buildings with any room, false to match buildings with no rooms
Compliancemandatory This method must be implemented.
MethodclearRoomTerms
Description

Clears the room terms.

Compliancemandatory This method must be implemented.
MethodmatchCampusId
Description

Sets the building Id for this query to match rooms assigned to campuses.

Parametersosid.id.IdcampusId a campus Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT campusId is null
Compliancemandatory This method must be implemented.
MethodclearCampusIdTerms
Description

Clears the campus Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCampusQuery
Description

Tests if a CampusQuery is available.

Returnboolean true if a campus query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetCampusQuery
Description

Gets the query for a campus query. Multiple retrievals produce a nested OR term.

Returnosid.room.CampusQuery the campus query
ErrorsUNIMPLEMENTED supportsCampusQuery() is false
Complianceoptional This method must be implemented if supportsCampusQuery() is true.
MethodclearCampusTerms
Description

Clears the campus terms.

Compliancemandatory This method must be implemented.
MethodgetBuildingQueryRecord
Description

Gets the building query record corresponding to the given Building record Type .Multiple record retrievals produce a nested boolean OR term.

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