OSID Logo
OSID Specifications
mapping path package
Version 3.0.0
Release Candidate Preview
Interfaceosid.mapping.path.PathQuery
Implementsosid.OsidObjectQuery
Description

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.

MethodmatchCoordinate
Description

Matches paths overlapping with the specified Coordinate.

Parametersosid.mapping.Coordinatecoordinatea coordinate
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT coordinate is null
CompliancemandatoryThis method must be implemented.
MethodclearCoordinateTerms
Description

Clears the coordinate query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOverlappingSpatialUnit
Description

Matches paths overlapping with the specified SpatialUnit.

Parametersosid.mapping.SpatialUnitspatialUnita spatial unit
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT spatialUnit is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyOverlappingSpatialUnit
Description

Matches paths that have any overlapping spatial unit.

Parametersbooleanmatch true to match paths with any spatial dimension, false to match paths with no spatial dimensions
CompliancemandatoryThis method must be implemented.
MethodclearOverlappingSpatialUnitTerms
Description

Clears the spatial unit query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAlongLocationIds
Description

Sets the location Ids for this query to match paths including all the given locations.

Parametersosid.id.Id[]locationIdsthe location Ids
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationIds is null
CompliancemandatoryThis method must be implemented.
MethodclearAlongLocationIdsTerms
Description

Clears the along location Id query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchIntersectingPathId
Description

Sets the path Id for this query to match paths intersecting with another path,

Parametersosid.id.IdpathIdthe path Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT pathId is null
CompliancemandatoryThis method must be implemented.
MethodclearIntersectingPathIdTerms
Description

Clears the intersecting path Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsIntersectingPathQuery
Description

Tests if a PathQuery is available for intersecting paths,

Returnboolean true if a path query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetIntersectingPathQuery
Description

Gets the query for an intersecting path, Multiple retrievals produce a nested OR term.

Returnosid.mapping.path.PathQuerythe path query
ErrorsUNIMPLEMENTED supportsIntersectingPathQuery() is false
ComplianceoptionalThis method must be implemented if supportsIntersectingPathQuery() is true.
MethodmatchAnyIntersectingPath
Description

Matches paths with any intersecting path,

Parametersbooleanmatch true to match paths with any intersecting path, false to match paths with no intersecting path
CompliancemandatoryThis method must be implemented.
MethodclearIntersectingPathTerms
Description

Clears the intersecting path query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLocationId
Description

Sets the location Id for this query to match paths that pass through locations.

Parametersosid.id.IdlocationIdthe location Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationId is null
CompliancemandatoryThis method must be implemented.
MethodclearLocationIdTerms
Description

Clears the location Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsLocationQuery
Description

Tests if a LocationQuery is available.

Returnboolean true if a location query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetLocationQuery
Description

Gets the query for a location. Multiple retrievals produce a nested OR term.

Returnosid.mapping.LocationQuerythe location query
ErrorsUNIMPLEMENTED supportsLocationQuery() is false
ComplianceoptionalThis method must be implemented if supportsLocationQuery() is true.
MethodmatchAnyLocation
Description

Matches routes that go through any location.

Parametersbooleanmatch true to match routes with any location, false to match routes with no location
CompliancemandatoryThis method must be implemented.
MethodclearLocationTerms
Description

Clears the location query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRouteId
Description

Sets the route Id for this query to match paths used in a route.

Parametersosid.id.IdrouteIda route Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT routeId is null
CompliancemandatoryThis method must be implemented.
MethodclearRouteIdTerms
Description

Clears the route Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRouteQuery
Description

Tests if a RouteQuery is available.

Returnboolean true if a route query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRouteQuery
Description

Gets the query for a route. Multiple retrievals produce a nested OR term.

Returnosid.mapping.route.RouteQuerythe route query
ErrorsUNIMPLEMENTED supportsRouteQuery() is false
ComplianceoptionalThis method must be implemented if supportsRouteQuery() is true.
MethodmatchAnyRoute
Description

Matches paths that are used in any route.

Parametersbooleanmatch true to match paths in any route, false to match paths used in no route
CompliancemandatoryThis method must be implemented.
MethodclearRouteTerms
Description

Clears the route query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchMapId
Description

Sets the map Id for this query to match paths assigned to maps.

Parametersosid.id.IdmapIdthe map Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT mapId is null
CompliancemandatoryThis method must be implemented.
MethodclearMapIdTerms
Description

Clears the map Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsMapQuery
Description

Tests if a MapQuery is available.

Returnboolean true if a map query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetMapQuery
Description

Gets the query for a map. Multiple retrievals produce a nested OR term.

Returnosid.mapping.MapQuerythe map query
ErrorsUNIMPLEMENTED supportsMapQuery() is false
ComplianceoptionalThis method must be implemented if supportsMapQuery() is true.
MethodclearMapTerms
Description

Clears the map query terms.

CompliancemandatoryThis method must be implemented.
MethodgetPathQueryRecord
Description

Gets the path query record corresponding to the given Path record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypepathRecordTypea path record type
Returnosid.mapping.path.records.PathQueryRecordthe path query record
ErrorsNULL_ARGUMENT pathRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(pathRecordType) is false
CompliancemandatoryThis method must be implemented.