public interface BuildingQuery extends OsidObjectQuery, OsidTemporalQuery
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.
Modifier and Type | Method and Description |
---|---|
void |
clearAddressIdTerms()
Clears the address
Id terms. |
void |
clearAddressTerms()
Clears the address terms.
|
void |
clearCampusIdTerms()
Clears the campus
Id terms. |
void |
clearCampusTerms()
Clears the campus terms.
|
void |
clearEnclosingBuildingIdTerms()
Clears the building
Id terms. |
void |
clearEnclosingBuildingTerms()
Clears the enclosing building terms.
|
void |
clearGrossAreaTerms()
Clears the area terms.
|
void |
clearNumberTerms()
Clears the building number terms.
|
void |
clearOfficialNameTerms()
Clears the official name terms.
|
void |
clearRoomIdTerms()
Clears the room
Id terms. |
void |
clearRoomTerms()
Clears the room terms.
|
AddressQuery |
getAddressQuery()
Gets the query for an address query.
|
BuildingQueryRecord |
getBuildingQueryRecord(Type buildingRecordType)
Gets the building query record corresponding to the given
Building record Type. |
CampusQuery |
getCampusQuery()
Gets the query for a campus query.
|
BuildingQuery |
getEnclosingBuildingQuery()
Gets the query for a building query.
|
RoomQuery |
getRoomQuery()
Gets the query for a building.
|
void |
matchAddressId(Id addressId,
boolean match)
Sets an address
Id. |
void |
matchAnyAddress(boolean match)
Matches any address.
|
void |
matchAnyEnclosingBuilding(boolean match)
Matches any building.
|
void |
matchAnyGrossArea(boolean match)
Matches any area.
|
void |
matchAnyNumber(boolean match)
Matches any building number.
|
void |
matchAnyOfficialName(boolean match)
Matches any official name.
|
void |
matchAnyRoom(boolean match)
Matches buildings with any room.
|
void |
matchCampusId(Id campusId,
boolean match)
Sets the building
Id for this query to match rooms
assigned to campuses. |
void |
matchEnclosingBuildingId(Id buildingId,
boolean match)
Sets a building
Id. |
void |
matchGrossArea(java.math.BigDecimal low,
java.math.BigDecimal high,
boolean match)
Matches an area within the given range inclusive.
|
void |
matchNumber(java.lang.String number,
Type stringMatchType,
boolean match)
Sets a bulding number.
|
void |
matchOfficialName(java.lang.String name,
Type stringMatchType,
boolean match)
Sets a name.
|
void |
matchRoomId(Id roomId,
boolean match)
Sets the room
Id for this query to match rooms assigned
to buildings. |
boolean |
supportsAddressQuery()
Tests if an
AddressQuery is available. |
boolean |
supportsCampusQuery()
Tests if a
CampusQuery is available. |
boolean |
supportsEnclosingBuildingQuery()
Tests if a
BuildingQuery is available. |
boolean |
supportsRoomQuery()
Tests if a room query is available.
|
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchAddressId(Id addressId, boolean match)
Id.
addressId
- an address Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- addressId
is
null
mandatory
- This method must be implemented. void clearAddressIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAddressQuery()
AddressQuery
is available. true
if an address query is available,
false
otherwisemandatory
- This method must be implemented. AddressQuery getAddressQuery()
OR
term.UnimplementedException
- supportsAddressQuery()
is false
optional
- This method must be implemented if
supportsAddressQuery()
is true.
void matchAnyAddress(boolean match)
match
- true
to match buildings with any address,
false
to match buildings with no addressmandatory
- This method must be implemented. void clearAddressTerms()
mandatory
- This method must be implemented. void matchOfficialName(java.lang.String name, Type stringMatchType, boolean match)
name
- an official namestringMatchType
- a string match typematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- name
is not
of stringMatchType
NullArgumentException
- name
is
null
UnsupportedException
-
supportsStringMatchType(stringMatchType)
is
false
mandatory
- This method must be implemented. void matchAnyOfficialName(boolean match)
match
- true
to match buildings with any official
name, false
to match buildings with no official
namemandatory
- This method must be implemented. void clearOfficialNameTerms()
mandatory
- This method must be implemented. void matchNumber(java.lang.String number, Type stringMatchType, boolean match)
number
- a numberstringMatchType
- a string match typematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- number
is not
of stringMatchType
NullArgumentException
- number
is
null
UnsupportedException
-
supportsStringMatchType(stringMatchType)
is
false
mandatory
- This method must be implemented. void matchAnyNumber(boolean match)
match
- true
to match buildings with any number,
false
to match buildings with no numbermandatory
- This method must be implemented. void clearNumberTerms()
mandatory
- This method must be implemented. void matchEnclosingBuildingId(Id buildingId, boolean match)
Id.
buildingId
- a building Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- addressId
is
null
mandatory
- This method must be implemented. void clearEnclosingBuildingIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsEnclosingBuildingQuery()
BuildingQuery
is available. true
if a building query is available,
false
otherwisemandatory
- This method must be implemented. BuildingQuery getEnclosingBuildingQuery()
OR
term.UnimplementedException
-
supportsEnclosingBuildingQuery()
is false
optional
- This method must be implemented if
supportsEnclosingBuildingQuery()
is true.
void matchAnyEnclosingBuilding(boolean match)
match
- true
to match buildings with any
enclosing building, false
to match buildings
with no enclosing buildingmandatory
- This method must be implemented. void clearEnclosingBuildingTerms()
mandatory
- This method must be implemented. void matchGrossArea(java.math.BigDecimal low, java.math.BigDecimal high, boolean match)
low
- start of rangehigh
- end of rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- low
is
greater than high
mandatory
- This method must be implemented. void matchAnyGrossArea(boolean match)
match
- true
to match buildings with any area,
false
to match buildings with no area assignedmandatory
- This method must be implemented. void clearGrossAreaTerms()
mandatory
- This method must be implemented. void matchRoomId(Id roomId, boolean match)
Id
for this query to match rooms assigned
to buildings.roomId
- a room Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- roomId
is
null
mandatory
- This method must be implemented. void clearRoomIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsRoomQuery()
true
if a room query is available, false
otherwisemandatory
- This method must be implemented. RoomQuery getRoomQuery()
UnimplementedException
- supportsRoomQuery()
is false
optional
- This method must be implemented if
supportsRoomQuery()
is true.
void matchAnyRoom(boolean match)
match
- true
to match buildings with any room,
false
to match buildings with no roomsmandatory
- This method must be implemented. void clearRoomTerms()
mandatory
- This method must be implemented. void matchCampusId(Id campusId, boolean match)
Id
for this query to match rooms
assigned to campuses.campusId
- a campus Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- campusId
is
null
mandatory
- This method must be implemented. void clearCampusIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsCampusQuery()
CampusQuery
is available. true
if a campus query is available,
false
otherwisemandatory
- This method must be implemented. CampusQuery getCampusQuery()
OR
term.UnimplementedException
- supportsCampusQuery()
is false
optional
- This method must be implemented if
supportsCampusQuery()
is true.
void clearCampusTerms()
mandatory
- This method must be implemented. BuildingQueryRecord getBuildingQueryRecord(Type buildingRecordType) throws OperationFailedException
Building
record Type.
Multiple record
retrievals produce a nested boolean OR
term.buildingRecordType
- a building record typeNullArgumentException
- buildingRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(buildingRecordType)
is false
mandatory
- This method must be implemented.