Class SpellSuggestionsInfo

java.lang.Object
ro.sync.ecss.extensions.api.SpellSuggestionsInfo

@API(type=NOT_EXTENDABLE, src=PUBLIC) public class SpellSuggestionsInfo extends Object
Container for spellchecking suggestions information.
  • Constructor Details

    • SpellSuggestionsInfo

      public SpellSuggestionsInfo(int startOffset, int endOffset, String word, 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 Details

    • 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 String getWord()
      Returns:
      Returns the word for which suggestions were provided.
    • getSuggestions

      public String[] getSuggestions()
      Returns:
      Returns the suggestions.