OSID Logo
OSID Specifications
room package
Version 3.0.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.IdaddressIdan address Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTaddressId is null
CompliancemandatoryThis method must be implemented.
MethodclearAddressIdTerms
Description

Clears the address Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAddressQuery
Description

Tests if an AddressQuery is available.

Returnbooleantrue if an address query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAddressQuery
Description

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

Returnosid.contact.AddressQuerythe address query
ErrorsUNIMPLEMENTEDsupportsAddressQuery() is false
ComplianceoptionalThis method must be implemented if supportsAddressQuery() is true .
MethodmatchAnyAddress
Description

Matches any address.

Parametersbooleanmatchtrue to match buildings with any address, false to match buildings with no address
CompliancemandatoryThis method must be implemented.
MethodclearAddressTerms
Description

Clears the address terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOfficialName
Description

Sets a name.

Parametersstringnamean official name
osid.type.TypestringMatchTypea string match type
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTname is not of stringMatchType
NULL_ARGUMENTname is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyOfficialName
Description

Matches any official name.

Parametersbooleanmatchtrue to match buildings with any official name, false to match buildings with no official name
CompliancemandatoryThis method must be implemented.
MethodclearOfficialNameTerms
Description

Clears the official name terms.

CompliancemandatoryThis method must be implemented.
MethodmatchNumber
Description

Sets a bulding number.

Parametersstringnumbera number
osid.type.TypestringMatchTypea string match type
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTnumber is not of stringMatchType
NULL_ARGUMENTnumber is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyNumber
Description

Matches any building number.

Parametersbooleanmatchtrue to match buildings with any number, false to match buildings with no number
CompliancemandatoryThis method must be implemented.
MethodclearNumberTerms
Description

Clears the building number terms.

CompliancemandatoryThis method must be implemented.
MethodmatchEnclosingBuildingId
Description

Sets a building Id .

Parametersosid.id.IdbuildingIda building Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTaddressId is null
CompliancemandatoryThis method must be implemented.
MethodclearEnclosingBuildingIdTerms
Description

Clears the building Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEnclosingBuildingQuery
Description

Tests if a BuildingQuery is available.

Returnbooleantrue if a building query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetEnclosingBuildingQuery
Description

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

Returnosid.room.BuildingQuerythe building query
ErrorsUNIMPLEMENTEDsupportsEnclosingBuildingQuery() is false
ComplianceoptionalThis method must be implemented if supportsEnclosingBuildingQuery() is true .
MethodmatchAnyEnclosingBuilding
Description

Matches any building.

Parametersbooleanmatchtrue to match buildings with any enclosing building, false to match buildings with no enclosing building
CompliancemandatoryThis method must be implemented.
MethodclearEnclosingBuildingTerms
Description

Clears the enclosing building terms.

CompliancemandatoryThis method must be implemented.
MethodmatchGrossArea
Description

Matches an area within the given range inclusive.

Parametersdecimallowstart of range
decimalhighend of range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTlow is greater than high
CompliancemandatoryThis method must be implemented.
MethodmatchAnyGrossArea
Description

Matches any area.

Parametersbooleanmatchtrue to match buildings with any area, false to match buildings with no area assigned
CompliancemandatoryThis method must be implemented.
MethodclearGrossAreaTerms
Description

Clears the area terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRoomId
Description

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

Parametersosid.id.IdroomIda room Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTroomId is null
CompliancemandatoryThis method must be implemented.
MethodclearRoomIdTerms
Description

Clears the room Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRoomQuery
Description

Tests if a room query is available.

Returnbooleantrue if a room query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRoomQuery
Description

Gets the query for a building.

Returnosid.room.RoomQuerythe room query
ErrorsUNIMPLEMENTEDsupportsRoomQuery() is false
ComplianceoptionalThis method must be implemented if supportsRoomQuery() is true .
MethodmatchAnyRoom
Description

Matches buildings with any room.

Parametersbooleanmatchtrue to match buildings with any room, false to match buildings with no rooms
CompliancemandatoryThis method must be implemented.
MethodclearRoomTerms
Description

Clears the room terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCampusId
Description

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

Parametersosid.id.IdcampusIda campus Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcampusId is null
CompliancemandatoryThis method must be implemented.
MethodclearCampusIdTerms
Description

Clears the campus Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCampusQuery
Description

Tests if a CampusQuery is available.

Returnbooleantrue if a campus query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCampusQuery
Description

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

Returnosid.room.CampusQuerythe campus query
ErrorsUNIMPLEMENTEDsupportsCampusQuery() is false
ComplianceoptionalThis method must be implemented if supportsCampusQuery() is true .
MethodclearCampusTerms
Description

Clears the campus terms.

CompliancemandatoryThis 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.TypebuildingRecordTypea building record type
Returnosid.room.records.BuildingQueryRecordthe building query record
ErrorsNULL_ARGUMENTbuildingRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(buildingRecordType) is false
CompliancemandatoryThis method must be implemented.