Interface ObstacleQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, Suppliable
This is the query for searching obstacles. Each method match specifies
an AND term while multiple invocations of the same method produce
a nested OR.
Like all OsidQueries, ObstacleQuery is stateful and
must not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the spatial unit terms.voidClears the coordinate query terms.voidClears the mapIdquery terms.voidClears the map query terms.voidClears the pathIdquery terms.voidClears the path query terms.Gets the query for a map.getObstacleQueryRecord(Type obstacleRecordType) Gets the obstacle query record corresponding to the givenObstaclerecordType.Multiple record retrievals produce a nestedORterm.Gets the query for a path.voidmatchContainingSpatialUnit(SpatialUnit spatialUnit, boolean match) Matches obstacles within the specifiedSpatialUnit.voidmatchCoordinate(Coordinate coordinate, boolean match) Matches obstacles overlapping with the specifiedCoordinate.voidmatchMapId(Id mapId, boolean match) Sets the mapIdfor this query.voidmatchPathId(Id pathId, boolean match) Sets the pathIdfor this query to match obstacles along the given path.booleanTests if aMapQueryis available.booleanTests if aPathQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeMethods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdMethods inherited from interface OsidObjectQuery
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, supportsSubjectRelevancyQueryMethods inherited from interface OsidOperableQuery
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalMethods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
-
Method Details
-
matchPathId
Sets the pathIdfor this query to match obstacles along the given path.- Parameters:
pathId- the pathIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-pathIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearPathIdTerms
void clearPathIdTerms()Clears the pathIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsPathQuery
boolean supportsPathQuery()Tests if aPathQueryis available.- Returns:
trueif a path query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPathQuery
PathQuery getPathQuery()Gets the query for a path. Multiple retrievals produce a nestedORterm.- Returns:
- the path query
- Throws:
UnimplementedException-supportsPathQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPathQuery()} is {@code true}.
-
clearPathTerms
void clearPathTerms()Clears the path query terms.- Compliance:
mandatory- This method must be implemented.
-
matchCoordinate
Matches obstacles overlapping with the specifiedCoordinate.- Parameters:
coordinate- a coordinatematch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-coordinateisnull- Compliance:
mandatory- This method must be implemented.
-
clearCoordinateTerms
void clearCoordinateTerms()Clears the coordinate query terms.- Compliance:
mandatory- This method must be implemented.
-
matchContainingSpatialUnit
Matches obstacles within the specifiedSpatialUnit.- Parameters:
spatialUnit- a spatial unitmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-spatialUnitisnull- Compliance:
mandatory- This method must be implemented.
-
clearContainingSpatialUnitTerms
void clearContainingSpatialUnitTerms()Clears the spatial unit terms.- Compliance:
mandatory- This method must be implemented.
-
matchMapId
Sets the mapIdfor this query.- Parameters:
mapId- the mapIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-mapIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearMapIdTerms
void clearMapIdTerms()Clears the mapIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsMapQuery
boolean supportsMapQuery()Tests if aMapQueryis available.- Returns:
trueif a map query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getMapQuery
MapQuery getMapQuery()Gets the query for a map. Multiple retrievals produce a nestedORterm.- Returns:
- the map query
- Throws:
UnimplementedException-supportsMapQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsMapQuery()} is {@code true}.
-
clearMapTerms
void clearMapTerms()Clears the map query terms.- Compliance:
mandatory- This method must be implemented.
-
getObstacleQueryRecord
Gets the obstacle query record corresponding to the givenObstaclerecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
obstacleRecordType- an obstacle record type- Returns:
- the obstacle query record
- Throws:
NullArgumentException-obstacleRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(obstacleRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-