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
Modifier and TypeMethodDescriptiongetElevationForQuery(String queryString) Gets the elevation associated to the provided query.intsize()Gets the number of query elevations in thisQueryElevationComponent.ElevationProvider.
-
Method Details
-
getElevationForQuery
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.
-