Package ro.sync.ecss.extensions.api
Class SpellCheckingProblemInfo
java.lang.Object
ro.sync.ecss.extensions.api.SpellCheckingProblemInfo
- Direct Known Subclasses:
SpellCheckingProblemInfoWithSuggestions
-
Constructor Summary
ConstructorsConstructorDescriptionSpellCheckingProblemInfo
(int startOffset, int endOffset, int errorCode, String lang, String word) SpellCheckingProblemInfo
(int startOffset, int endOffset, int errorCode, String lang, String word, List<String> suggestions) -
Method Summary
-
Constructor Details
-
SpellCheckingProblemInfo
public SpellCheckingProblemInfo(int startOffset, int endOffset, int errorCode, String lang, String word) - Parameters:
startOffset
- Word start position.endOffset
- Word end position.errorCode
- Error code result from spellchecking.lang
- ISO Name for the language of the word.word
- Word between the offsets.
-
SpellCheckingProblemInfo
public SpellCheckingProblemInfo(int startOffset, int endOffset, int errorCode, String lang, String word, List<String> suggestions) - Parameters:
startOffset
- Word start position.endOffset
- Word end position.errorCode
- Error code result from spellchecking.lang
- ISO Name for the language of the word.word
- Word between the offsets.suggestions
- The suggestions for the word.
-
-
Method Details
-
getStartOffset
public int getStartOffset()- Returns:
- Returns the start.
-
getEndOffset
public int getEndOffset()- Returns:
- Returns the end.
-
getErrorCode
public int getErrorCode()- Returns:
- Returns the err.
-
getLanguageIsoName
- Returns:
- Returns the languageIsoName.
-
getWord
- Returns:
- Returns the word.
-
toString
-
getSuggestions
Get the suggestions for a word. Custom spell checking engines may provide suggestions on detection.- Returns:
- Returns the suggestions for the word.
- Since:
- 21
-