OSID Logo
OSID Specifications
mapping package
Version 3.1.0
Interfaceosid.mapping.LocationQuery
Implementsosid.OsidObjectQuery
osid.OsidFederateableQuery
Used Byosid.calendaring.EventQuery
osid.calendaring.OffsetEventQuery
osid.calendaring.ScheduleQuery
osid.course.ActivityQuery
osid.inventory.ItemQuery
osid.inventory.StockQuery
osid.mapping.LocationQuery
osid.mapping.LocationQuerySession
osid.mapping.LocationSearchSession
osid.mapping.LocationSmartMapSession
show 4 more…
osid.mapping.MapQuery
osid.mapping.path.PathQuery
osid.mapping.route.RouteQuery
osid.repository.AssetQuery
Description

This is the query for searching locations. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchCoordinate
Description

Matches locations at the specified Coordinate.

Parametersosid.mapping.Coordinatecoordinate a coordinate
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT coordinate is null
Compliancemandatory This method must be implemented.
MethodmatchAnyCoordinate
Description

Matches locations that have any coordinate assignment.

Parametersbooleanmatch true to match locations with any coordinate, false to match locations with no coordinates
Compliancemandatory This method must be implemented.
MethodclearCoordinateTerms
Description

Clears the coordinate query terms.

Compliancemandatory This method must be implemented.
MethodmatchContainedSpatialUnit
Description

Matches locations containing the specified SpatialUnit.

Parametersosid.mapping.SpatialUnitspatialUnit a spatial unit
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT spatialUnit is null
Compliancemandatory This method must be implemented.
MethodclearContainedSpatialUnitTerms
Description

Clears the spatial unit terms.

Compliancemandatory This method must be implemented.
MethodmatchOverlappingSpatialUnit
Description

Matches locations overlapping with the specified SpatialUnit.

Parametersosid.mapping.SpatialUnitspatialUnit a spatial unit
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT spatialUnit is null
Compliancemandatory This method must be implemented.
MethodclearOverlappingSpatialUnitTerms
Description

Clears the overlapping spatial unit terms.

Compliancemandatory This method must be implemented.
MethodmatchAnySpatialUnit
Description

Matches locations that have any spatial unit assignment.

Parametersbooleanmatch true to match locations with any boundary, false to match locations with no boundaries
Compliancemandatory This method must be implemented.
MethodclearSpatialUnitTerms
Description

Clears the spatial unit query terms.

Compliancemandatory This method must be implemented.
MethodmatchRouteId
Description

Sets the route Id for this query to match locations along the given route.

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

Clears the route Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRouteQuery
Description

Tests if a RouteQuery is available.

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

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

Returnosid.mapping.route.RouteQuery the route query
ErrorsUNIMPLEMENTED supportsRouteQuery() is false
Complianceoptional This method must be implemented if supportsRouteQuery() is true.
MethodmatchAnyRoute
Description

Matches locations that are used on any route.

Parametersbooleanmatch true to match locations on any route, false to match locations on no routes
Compliancemandatory This method must be implemented.
MethodclearRouteTerms
Description

Clears the route query terms.

Compliancemandatory This method must be implemented.
MethodmatchPathId
Description

Sets the path Id for this query to match locations along the given path.

Parametersosid.id.IdpathId the path Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT pathId is null
Compliancemandatory This method must be implemented.
MethodclearPathIdTerms
Description

Clears the path Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsPathQuery
Description

Tests if a PathQuery is available.

Returnboolean true if a path query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPathQuery
Description

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

Returnosid.mapping.path.PathQuery the path query
ErrorsUNIMPLEMENTED supportsPathQuery() is false
Complianceoptional This method must be implemented if supportsPathQuery() is true.
MethodmatchAnyPath
Description

Matches locations that exist along any path.

Parametersbooleanmatch true to match locations on any path, false to match locations on no path
Compliancemandatory This method must be implemented.
MethodclearPathTerms
Description

Clears the path query terms.

Compliancemandatory This method must be implemented.
MethodmatchContainingLocationId
Description

Sets the location Id for this query to match locations contained within the given location.

Parametersosid.id.IdlocationId a location Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationId is null
Compliancemandatory This method must be implemented.
MethodclearContainingLocationIdTerms
Description

Clears the pcontaining location Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsContainingLocationQuery
Description

Tests if a LocationQuery is available.

Returnboolean true if a location query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetContainingLocationQuery
Description

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

Returnosid.mapping.LocationQuery the location query
ErrorsUNIMPLEMENTED supportsContainingLocationQuery() is false
Complianceoptional This method must be implemented if supportsContainingLocationQuery() is true.
MethodmatchAnyContainingLocation
Description

Matches locations that have any ancestor.

Parametersbooleanmatch true to match locations with any parent location, false to match root locations
Compliancemandatory This method must be implemented.
MethodclearContainingLocationTerms
Description

Clears the containing location query terms.

Compliancemandatory This method must be implemented.
MethodmatchContainedLocationId
Description

Sets the location Id for this query to match locations containing the given location.

Parametersosid.id.IdlocationId a location Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationId is null
Compliancemandatory This method must be implemented.
MethodclearContainedLocationIdTerms
Description

Clears the contained location Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsContainedLocationQuery
Description

Tests if a LocationQuery is available.

Returnboolean true if a location query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetContainedLocationQuery
Description

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

Returnosid.mapping.LocationQuery the location query
ErrorsUNIMPLEMENTED supportsContainedLocationQuery() is false
Complianceoptional This method must be implemented if supportsContainedLocationQuery() is true.
MethodmatchAnyContainedLocation
Description

Matches locations that have any children.

Parametersbooleanmatch true to match locations containing any other location, false to match empty locations
Compliancemandatory This method must be implemented.
MethodclearContainedLocationTerms
Description

Clears the contained location query terms.

Compliancemandatory This method must be implemented.
MethodmatchMapId
Description

Sets the map Id for this query.

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

Clears the map Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsMapQuery
Description

Tests if a MapQuery is available.

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

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

Returnosid.mapping.MapQuery the map query
ErrorsUNIMPLEMENTED supportsMapQuery() is false
Complianceoptional This method must be implemented if supportsMapQuery() is true.
MethodclearMapTerms
Description

Clears the map query terms.

Compliancemandatory This method must be implemented.
MethodgetLocationQueryRecord
Description

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

Parametersosid.type.TypelocationRecordType a location record type
Returnosid.mapping.records.LocationQueryRecord the location query record
ErrorsNULL_ARGUMENT locationRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(locationRecordType) is false
Compliancemandatory This method must be implemented.