com.dotmarketing.util
Class DotSpellChecker.MisspelledWord

java.lang.Object
  extended by com.dotmarketing.util.DotSpellChecker.MisspelledWord
Enclosing class:
DotSpellChecker

public class DotSpellChecker.MisspelledWord
extends java.lang.Object

This class represent a misspelled word in the process of spelling check.

Author:
david

Field Summary
 java.lang.String[] suggestions
           
 java.lang.String word
           
 int wordBegin
           
 int wordEnd
           
 
Constructor Summary
DotSpellChecker.MisspelledWord(java.lang.String word, int begin, int end, java.lang.String[] suggestions)
          Constructor of the class
DotSpellChecker.MisspelledWord(java.lang.String word, java.lang.String[] suggestions)
          Constructor of the class
 
Method Summary
 java.lang.String[] getSuggestions()
          Returns the list of possible suggested corrections
 java.lang.String getWord()
          Returns the misspelled word
 int getWordBegin()
          Returns the offset in the whole text when the word begins
 int getWordEnd()
          Returns the offset in the whole text when the word ends
 void setSuggestions(java.lang.String[] suggestions)
          Sets the list of possible suggested corrections
 void setWord(java.lang.String word)
          Sets the misspelled word
 void setWordBegin(int wordBegin)
          Sets the offset in the whole text when the word begins
 void setWordEnd(int wordEnd)
          Sets the offset in the whole text when the word ends
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

word

public java.lang.String word

suggestions

public java.lang.String[] suggestions

wordBegin

public int wordBegin

wordEnd

public int wordEnd
Constructor Detail

DotSpellChecker.MisspelledWord

public DotSpellChecker.MisspelledWord(java.lang.String word,
                                      java.lang.String[] suggestions)
Constructor of the class

Parameters:
word - The mispelled word
suggestions - The list of suggestions

DotSpellChecker.MisspelledWord

public DotSpellChecker.MisspelledWord(java.lang.String word,
                                      int begin,
                                      int end,
                                      java.lang.String[] suggestions)
Constructor of the class

Parameters:
word - The mispelled word
begin - The offset in the whole text when the word begins
end - The offset in the whole text when the word ends
suggestions - The list of suggestions
Method Detail

getSuggestions

public java.lang.String[] getSuggestions()
Returns the list of possible suggested corrections

Returns:
The list of possible suggested corrections

setSuggestions

public void setSuggestions(java.lang.String[] suggestions)
Sets the list of possible suggested corrections

Parameters:
suggestions - The list of possible suggested corrections

getWord

public java.lang.String getWord()
Returns the misspelled word

Returns:
The misspelled word

setWord

public void setWord(java.lang.String word)
Sets the misspelled word

Parameters:
word - The misspelled word

getWordBegin

public int getWordBegin()
Returns the offset in the whole text when the word begins

Returns:
The offset in the whole text when the word begins

setWordBegin

public void setWordBegin(int wordBegin)
Sets the offset in the whole text when the word begins

Parameters:
wordBegin - The offset in the whole text when the word begins

getWordEnd

public int getWordEnd()
Returns the offset in the whole text when the word ends

Returns:
The offset in the whole text when the word ends

setWordEnd

public void setWordEnd(int wordEnd)
Sets the offset in the whole text when the word ends

Parameters:
wordEnd - The offset in the whole text when the word ends


Copyright © 2006 Dotmarketing, Inc. All Rights Reserved.