public class JSpellErrorInfo
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public JSpellErrorInfo(JSpellWordBundle wordBundle, java.lang.String[] suggestions)
wordBundle
- a JSpellWordBundle object.suggestions
- an array of Strings representing suggested replacements for this word.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.Object
public final java.lang.String toTokenizedString()
JSpell SDK - Spell Checker for the Java Platform
Copyright © 2009-2019 Page Scholar Inc, All Rights Reserved - https://www.jspell.com