public interface RouteQuery extends OsidRelationshipQuery, OsidAggregateableQuery
This is the query for searching routes. 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 |
clearDistanceTerms()
Clears the distance query terms.
|
void |
clearEndingLocationIdTerms()
Clears the ending location
Id query terms. |
void |
clearEndingLocationTerms()
Clears the ending location query terms.
|
void |
clearETATerms()
Clears the ETA 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 |
clearPathIdTerms()
Clears the path
Id query terms. |
void |
clearPathTerms()
Clears the path query terms.
|
void |
clearStartingLocationIdTerms()
Clears the starting location
Id query terms. |
void |
clearStartingLocationTerms()
Clears the starting location query terms.
|
LocationQuery |
getEndingLocationQuery()
Gets the query for an ending location.
|
LocationQuery |
getLocationQuery()
Gets the query for a location.
|
MapQuery |
getMapQuery()
Gets the query for a map.
|
PathQuery |
getPathQuery()
Gets the query for a path.
|
RouteQueryRecord |
getRouteQueryRecord(Type routeRecordType)
Gets the route query record corresponding to the given
Route
record Type. |
LocationQuery |
getStartingLocationQuery()
Gets the query for a starting location.
|
void |
matchAlongLocationIds(Id[] locationIds,
boolean match)
Sets the location
Id for this query to match routes
along all the given locations. |
void |
matchAnyDistance(boolean match)
Matches routes that has any distance assigned or calculated.
|
void |
matchAnyETA(boolean match)
Matches routes that has any estimated time assigned or calculated.
|
void |
matchAnyLocation(boolean match)
Matches routes that has any location along the route, exclusive of the
endpoints.
|
void |
matchAnyPath(boolean match)
Matches routes using any designated path.
|
void |
matchDistance(Distance from,
Distance to,
boolean match)
Matches routes that have distances within the specified range
inclusive.
|
void |
matchEndingLocationId(Id locationId,
boolean match)
Sets the location
Id for this query to match routes
with an ending location. |
void |
matchETA(Duration from,
Duration to,
boolean match)
Matches routes that have the specified estimated travel time
inclusive.
|
void |
matchLocationId(Id locationId,
boolean match)
Sets the location
Id for this query to match routes
through a location. |
void |
matchMapId(Id mapId,
boolean match)
Sets the map
Id for this query to match routes assigned
to maps. |
void |
matchPathId(Id pathId,
boolean match)
Sets the path
Id for this query to match routes using a
designated path. |
void |
matchStartingLocationId(Id locationId,
boolean match)
Sets the location
Id for this query to match routes
with a starting location. |
boolean |
supportsEndingLocationQuery()
Tests if a
LocationQuery is available for an ending
location. |
boolean |
supportsLocationQuery()
Tests if a
LocationQuery is available. |
boolean |
supportsMapQuery()
Tests if a
MapQuery is available. |
boolean |
supportsPathQuery()
Tests if a
PathQuery is available. |
boolean |
supportsStartingLocationQuery()
Tests if a
LocationQuery is available for a starting
location. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQuery
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 matchStartingLocationId(Id locationId, boolean match)
Id
for this query to match routes
with a starting location.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 clearStartingLocationIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsStartingLocationQuery()
LocationQuery
is available for a starting
location. true
if a location query is available,
false
otherwisemandatory
- This method must be implemented. LocationQuery getStartingLocationQuery()
OR
term.UnimplementedException
-
supportsStartingLocationQuery()
is false
optional
- This method must be implemented if
supportsStartingLocationQuery()
is true.
void clearStartingLocationTerms()
mandatory
- This method must be implemented. void matchEndingLocationId(Id locationId, boolean match)
Id
for this query to match routes
with an ending location.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 clearEndingLocationIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsEndingLocationQuery()
LocationQuery
is available for an ending
location. true
if a location query is available,
false
otherwisemandatory
- This method must be implemented. LocationQuery getEndingLocationQuery()
OR
term.UnimplementedException
-
supportsEndingLocationQuery()
is false
optional
- This method must be implemented if
supportsEndingLocationQuery()
is true.
void clearEndingLocationTerms()
mandatory
- This method must be implemented. void matchAlongLocationIds(Id[] locationIds, boolean match)
Id
for this query to match routes
along 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 matchDistance(Distance from, Distance to, boolean match)
from
- starting rangeto
- ending rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- to
is less
than from
mandatory
- This method must be implemented. void matchAnyDistance(boolean match)
match
- true
to match routes with any distance,
false
to match routes with no distancemandatory
- This method must be implemented. void clearDistanceTerms()
mandatory
- This method must be implemented. void matchETA(Duration from, Duration to, boolean match)
from
- starting rangeto
- ending rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- to
is less
than from
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void matchAnyETA(boolean match)
match
- true
to match routes with any eta,
false
to match routes with no etamandatory
- This method must be implemented. void clearETATerms()
mandatory
- This method must be implemented. void matchLocationId(Id locationId, boolean match)
Id
for this query to match routes
through a location.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 matchPathId(Id pathId, boolean match)
Id
for this query to match routes using a
designated 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 clearPathIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsPathQuery()
PathQuery
is available. true
if a path query is available, false
otherwisemandatory
- This method must be implemented. PathQuery getPathQuery()
OR
term.UnimplementedException
- supportsPathQuery()
is false
optional
- This method must be implemented if
supportsPathQuery()
is true.
void matchAnyPath(boolean match)
match
- true
to match routes with any path
false
to match routes with no pathmandatory
- This method must be implemented. void clearPathTerms()
mandatory
- This method must be implemented. void matchMapId(Id mapId, boolean match)
Id
for this query to match routes 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. RouteQueryRecord getRouteQueryRecord(Type routeRecordType) throws OperationFailedException
Route
record Type.
Multiple record retrievals produce
a nested OR
term.routeRecordType
- a route record typeNullArgumentException
- routeRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(routeRecordType)
is false
mandatory
- This method must be implemented.