Package ro.sync.ecss.extensions.api
Class SpellCheckingProblemInfo
- java.lang.Object
-
- ro.sync.ecss.extensions.api.SpellCheckingProblemInfo
-
- Direct Known Subclasses:
SpellCheckingProblemInfoWithSuggestions
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class SpellCheckingProblemInfo extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SpellCheckingProblemInfo(int startOffset, int endOffset, int errorCode, java.lang.String lang, java.lang.String word)
SpellCheckingProblemInfo(int startOffset, int endOffset, int errorCode, java.lang.String lang, java.lang.String word, java.util.List<java.lang.String> suggestions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEndOffset()
int
getErrorCode()
java.lang.String
getLanguageIsoName()
int
getStartOffset()
java.util.List<java.lang.String>
getSuggestions()
Get the suggestions for a word.java.lang.String
getWord()
java.lang.String
toString()
-
-
-
Constructor Detail
-
SpellCheckingProblemInfo
public SpellCheckingProblemInfo(int startOffset, int endOffset, int errorCode, java.lang.String lang, java.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, java.lang.String lang, java.lang.String word, java.util.List<java.lang.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 Detail
-
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
public java.lang.String getLanguageIsoName()
- Returns:
- Returns the languageIsoName.
-
getWord
public java.lang.String getWord()
- Returns:
- Returns the word.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
getSuggestions
public java.util.List<java.lang.String> 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
-
-