OSID Logo
OSID Specifications
room package
Version 3.0.0
Release Candidate Preview
Interfaceosid.room.BuildingQuery
Implementsosid.OsidObjectQuery
osid.OsidTemporalQuery
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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT addressId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsAddressQuery() is false
ComplianceoptionalThis 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
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
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
CompliancemandatoryThis 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
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
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
CompliancemandatoryThis 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
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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT addressId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsEnclosingBuildingQuery() is false
ComplianceoptionalThis 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
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
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
CompliancemandatoryThis 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
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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT roomId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsRoomQuery() is false
ComplianceoptionalThis 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
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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT campusId 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.

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