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) SpellCheckingProblemInfo(int startOffset, int endOffset, int errorCode, String lang, String word, List<String> suggestions, WebAuthorSpellcheckErrorTypes errorType, String errorMessage) -
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.
-
SpellCheckingProblemInfo
public SpellCheckingProblemInfo(int startOffset, int endOffset, int errorCode, String lang, String word, List<String> suggestions, WebAuthorSpellcheckErrorTypes errorType, String errorMessage) - 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.errorType- The error type.errorMessage- Error message for the word.- Since:
- 27.1
**************************************
EXPERIMENTAL - Subject to change
**************************************
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
-
-
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
-
getErrorMessage
- Returns:
- Returns the error message for the word.
- Since:
- 28
**************************************
EXPERIMENTAL - Subject to change
**************************************
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
-
getErrorType
- Returns:
- Returns the error type.
- Since:
- 28
**************************************
EXPERIMENTAL - Subject to change
**************************************
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
-