Interface QueryElevationComponent.ElevationProvider
-
- All Known Implementing Classes:
QueryElevationComponent.MapElevationProvider
- Enclosing class:
- QueryElevationComponent
protected static interface QueryElevationComponent.ElevationProviderProvides the elevations defined for queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QueryElevationComponent.ElevationgetElevationForQuery(String queryString)Gets the elevation associated to the provided query.intsize()Gets the number of query elevations in thisQueryElevationComponent.ElevationProvider.
-
-
-
Method Detail
-
getElevationForQuery
QueryElevationComponent.Elevation getElevationForQuery(String queryString)
Gets the elevation associated to the provided query.By contract and by design, only one elevation may be associated to a given query (this can be safely verified by an assertion).
- Parameters:
queryString- The query string (notanalyzedyet, thisQueryElevationComponent.ElevationProvideris in charge of analyzing it).- Returns:
- The elevation associated with the query; or
nullif none.
-
size
int size()
Gets the number of query elevations in thisQueryElevationComponent.ElevationProvider.
-
-