|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.util.DotSpellChecker.MisspelledWord
public class DotSpellChecker.MisspelledWord
This class represent a misspelled word in the process of spelling check.
| 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 |
|---|
public java.lang.String word
public java.lang.String[] suggestions
public int wordBegin
public int wordEnd
| Constructor Detail |
|---|
public DotSpellChecker.MisspelledWord(java.lang.String word,
java.lang.String[] suggestions)
word - The mispelled wordsuggestions - The list of suggestions
public DotSpellChecker.MisspelledWord(java.lang.String word,
int begin,
int end,
java.lang.String[] suggestions)
word - The mispelled wordbegin - The offset in the whole text when the word beginsend - The offset in the whole text when the word endssuggestions - The list of suggestions| Method Detail |
|---|
public java.lang.String[] getSuggestions()
public void setSuggestions(java.lang.String[] suggestions)
suggestions - The list of possible suggested correctionspublic java.lang.String getWord()
public void setWord(java.lang.String word)
word - The misspelled wordpublic int getWordBegin()
public void setWordBegin(int wordBegin)
wordBegin - The offset in the whole text when the word beginspublic int getWordEnd()
public void setWordEnd(int wordEnd)
wordEnd - The offset in the whole text when the word ends
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||