Package ro.sync.ecss.extensions.api
Class SpellSuggestionsInfo
- java.lang.Object
-
- ro.sync.ecss.extensions.api.SpellSuggestionsInfo
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class SpellSuggestionsInfo extends java.lang.Object
Container for spellchecking suggestions information.
-
-
Constructor Summary
Constructors Constructor Description SpellSuggestionsInfo(int startOffset, int endOffset, java.lang.String word, java.lang.String[] suggestions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEndOffset()
Gets the end offset.int
getStartOffset()
Gets the start offset.java.lang.String[]
getSuggestions()
java.lang.String
getWord()
-
-
-
Constructor Detail
-
SpellSuggestionsInfo
public SpellSuggestionsInfo(int startOffset, int endOffset, java.lang.String word, java.lang.String[] suggestions)
- Parameters:
startOffset
- Start offset of the word.endOffset
- End offset of the word.word
- The targeted word for suggestions.suggestions
- List of suggestions.
-
-
Method Detail
-
getStartOffset
public int getStartOffset()
Gets the start offset.- Returns:
- Returns the start offset.
-
getEndOffset
public int getEndOffset()
Gets the end offset.- Returns:
- Returns the end offset.
-
getWord
public java.lang.String getWord()
- Returns:
- Returns the word for which suggestions were provided.
-
getSuggestions
public java.lang.String[] getSuggestions()
- Returns:
- Returns the suggestions.
-
-