|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wallstreetwise.app.jspell.domain.JSpellErrorInfo
public class JSpellErrorInfo
This class encapsulates error information returned by the dictionary accessor.
| Constructor Summary | |
|---|---|
JSpellErrorInfo(JSpellWordBundle wordBundle,
java.lang.String[] suggestions)
Pass a JSpellWordBundle containing information on the checked word such as position and the word itself and the suggested spellings. |
|
| Method Summary | |
|---|---|
int |
getPosition()
Return the position in the source text of this word. |
java.lang.String[] |
getSuggestions()
Return the suggested words. |
java.lang.String |
getWord()
Return the word that was checked (and presumably invalid). |
JSpellWordBundle |
getWordBundle()
Return the JSpellWordBundle containing the invalid word and position in source text. |
void |
setPosition(int position)
Set the position of this word in the source text. |
java.lang.String |
toString()
For debugging only. |
java.lang.String |
toTokenizedString()
Returns a JSpellErrorInfo object used by the JSpellServlet class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JSpellErrorInfo(JSpellWordBundle wordBundle,
java.lang.String[] suggestions)
wordBundle - a JSpellWordBundle object.suggestions - an array of Strings representing suggested replacements for this word.| Method Detail |
|---|
public final java.lang.String getWord()
public final int getPosition()
public final void setPosition(int position)
position - the position.public final JSpellWordBundle getWordBundle()
public final java.lang.String[] getSuggestions()
public final java.lang.String toString()
toString in class java.lang.Objectpublic final java.lang.String toTokenizedString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||