Interface QueryElevationComponent.ElevationProvider
-
- All Known Implementing Classes:
QueryElevationComponent.DefaultElevationProvider
- Enclosing class:
- QueryElevationComponent
protected static interface QueryElevationComponent.ElevationProvider
Provides the elevations defined for queries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QueryElevationComponent.Elevation
getElevationForQuery(String queryString)
Gets the elevation associated to the provided query.int
size()
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 (notanalyzed
yet, thisQueryElevationComponent.ElevationProvider
is in charge of analyzing it).- Returns:
- The elevation associated with the query; or
null
if none.
-
size
int size()
Gets the number of query elevations in thisQueryElevationComponent.ElevationProvider
.
-
-