Package org.gbif.api.model.common.search
Class SpellCheckResponse
java.lang.Object
org.gbif.api.model.common.search.SpellCheckResponse
Contains the response information of a spell check request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Information about a suggestion made for possible correct spelled version of a search term. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getSuggestion
(String token) int
hashCode()
boolean
void
setCorrectlySpelled
(boolean correctlySpelled) Sets the misspelling flag.void
setSuggestions
(Map<String, SpellCheckResponse.Suggestion> suggestions) Sets the suggestion map.toString()
-
Constructor Details
-
SpellCheckResponse
public SpellCheckResponse()
-
-
Method Details
-
isCorrectlySpelled
- Returns:
- false if the response contains misspellings
-
setCorrectlySpelled
Sets the misspelling flag. -
getSuggestions
- Returns:
- the suggestion map
-
getSuggestion
- Parameters:
token
- correction of a search term- Returns:
- the suggestion for a token
-
setSuggestions
Sets the suggestion map. -
equals
-
hashCode
-
toString
-