Class SpellCheckingProblemInfo

    • 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)  
    • 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 class java.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