public interface PathQuery extends OsidObjectQuery
This is the query for searching paths. Each method match specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAlongLocationIdsTerms()
Clears the along location
Id query terms. |
void |
clearCoordinateTerms()
Clears the coordinate query terms.
|
void |
clearIntersectingPathIdTerms()
Clears the intersecting path
Id query terms. |
void |
clearIntersectingPathTerms()
Clears the intersecting path query terms.
|
void |
clearLocationIdTerms()
Clears the location
Id query terms. |
void |
clearLocationTerms()
Clears the location query terms.
|
void |
clearMapIdTerms()
Clears the map
Id query terms. |
void |
clearMapTerms()
Clears the map query terms.
|
void |
clearOverlappingSpatialUnitTerms()
Clears the spatial unit query terms.
|
void |
clearRouteIdTerms()
Clears the route
Id query terms. |
void |
clearRouteTerms()
Clears the route query terms.
|
PathQuery |
getIntersectingPathQuery()
Gets the query for an intersecting path, Multiple retrievals produce a
nested
OR term. |
LocationQuery |
getLocationQuery()
Gets the query for a location.
|
MapQuery |
getMapQuery()
Gets the query for a map.
|
PathQueryRecord |
getPathQueryRecord(Type pathRecordType)
Gets the path query record corresponding to the given
Path
record Type. |
RouteQuery |
getRouteQuery()
Gets the query for a route.
|
void |
matchAlongLocationIds(Id[] locationIds,
boolean match)
Sets the location
Ids for this query to match paths
including all the given locations. |
void |
matchAnyIntersectingPath(boolean match)
Matches paths with any intersecting path,
|
void |
matchAnyLocation(boolean match)
Matches routes that go through any location.
|
void |
matchAnyOverlappingSpatialUnit(boolean match)
Matches paths that have any overlapping spatial unit.
|
void |
matchAnyRoute(boolean match)
Matches paths that are used in any route.
|
void |
matchCoordinate(Coordinate coordinate,
boolean match)
Matches paths overlapping with the specified
Coordinate. |
void |
matchIntersectingPathId(Id pathId,
boolean match)
Sets the path
Id for this query to match paths
intersecting with another path, |
void |
matchLocationId(Id locationId,
boolean match)
Sets the location
Id for this query to match paths that
pass through locations. |
void |
matchMapId(Id mapId,
boolean match)
Sets the map
Id for this query to match paths assigned
to maps. |
void |
matchOverlappingSpatialUnit(SpatialUnit spatialUnit,
boolean match)
Matches paths overlapping with the specified
SpatialUnit. |
void |
matchRouteId(Id routeId,
boolean match)
Sets the route
Id for this query to match paths used in
a route. |
boolean |
supportsIntersectingPathQuery()
Tests if a
PathQuery is available for intersecting
paths, |
boolean |
supportsLocationQuery()
Tests if a
LocationQuery is available. |
boolean |
supportsMapQuery()
Tests if a
MapQuery is available. |
boolean |
supportsRouteQuery()
Tests if a
RouteQuery 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
void matchCoordinate(Coordinate coordinate, boolean match)
Coordinate.
coordinate
- a coordinatematch
- true
for a positive match, false
for a negative matchNullArgumentException
- coordinate
is
null
mandatory
- This method must be implemented. void clearCoordinateTerms()
mandatory
- This method must be implemented. void matchOverlappingSpatialUnit(SpatialUnit spatialUnit, boolean match)
SpatialUnit.
spatialUnit
- a spatial unitmatch
- true
for a positive match, false
for a negative matchNullArgumentException
- spatialUnit
is
null
mandatory
- This method must be implemented. void matchAnyOverlappingSpatialUnit(boolean match)
match
- true
to match paths with any spatial
dimension, false
to match paths with no spatial
dimensionsmandatory
- This method must be implemented. void clearOverlappingSpatialUnitTerms()
mandatory
- This method must be implemented. void matchAlongLocationIds(Id[] locationIds, boolean match)
Ids
for this query to match paths
including all the given locations.locationIds
- the location Ids
match
- true
for a positive match, false
for a negative matchNullArgumentException
- locationIds
is
null
mandatory
- This method must be implemented. void clearAlongLocationIdsTerms()
Id
query terms.mandatory
- This method must be implemented. void matchIntersectingPathId(Id pathId, boolean match)
Id
for this query to match paths
intersecting with another path,pathId
- the path Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- pathId
is
null
mandatory
- This method must be implemented. void clearIntersectingPathIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsIntersectingPathQuery()
PathQuery
is available for intersecting
paths, true
if a path query is available, false
otherwisemandatory
- This method must be implemented. PathQuery getIntersectingPathQuery()
OR
term.UnimplementedException
-
supportsIntersectingPathQuery()
is false
optional
- This method must be implemented if
supportsIntersectingPathQuery()
is true.
void matchAnyIntersectingPath(boolean match)
match
- true
to match paths with any intersecting
path, false
to match paths with no intersecting
pathmandatory
- This method must be implemented. void clearIntersectingPathTerms()
mandatory
- This method must be implemented. void matchLocationId(Id locationId, boolean match)
Id
for this query to match paths that
pass through locations.locationId
- the location Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- locationId
is
null
mandatory
- This method must be implemented. void clearLocationIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsLocationQuery()
LocationQuery
is available. true
if a location query is available,
false
otherwisemandatory
- This method must be implemented. LocationQuery getLocationQuery()
OR
term.UnimplementedException
- supportsLocationQuery()
is false
optional
- This method must be implemented if
supportsLocationQuery()
is true.
void matchAnyLocation(boolean match)
match
- true
to match routes with any location,
false
to match routes with no locationmandatory
- This method must be implemented. void clearLocationTerms()
mandatory
- This method must be implemented. void matchRouteId(Id routeId, boolean match)
Id
for this query to match paths used in
a route.routeId
- a route Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- routeId
is
null
mandatory
- This method must be implemented. void clearRouteIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsRouteQuery()
RouteQuery
is available. true
if a route query is available,
false
otherwisemandatory
- This method must be implemented. RouteQuery getRouteQuery()
OR
term.UnimplementedException
- supportsRouteQuery()
is false
optional
- This method must be implemented if
supportsRouteQuery()
is true.
void matchAnyRoute(boolean match)
match
- true
to match paths in any route,
false
to match paths used in no routemandatory
- This method must be implemented. void clearRouteTerms()
mandatory
- This method must be implemented. void matchMapId(Id mapId, boolean match)
Id
for this query to match paths assigned
to maps.mapId
- the map Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- mapId
is
null
mandatory
- This method must be implemented. void clearMapIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsMapQuery()
MapQuery
is available. true
if a map query is available, false
otherwisemandatory
- This method must be implemented. MapQuery getMapQuery()
OR
term.UnimplementedException
- supportsMapQuery()
is false
optional
- This method must be implemented if
supportsMapQuery()
is true.
void clearMapTerms()
mandatory
- This method must be implemented. PathQueryRecord getPathQueryRecord(Type pathRecordType) throws OperationFailedException
Path
record Type.
Multiple record retrievals produce
a nested OR
term.pathRecordType
- a path record typeNullArgumentException
- pathRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(pathRecordType)
is false
mandatory
- This method must be implemented.