|
RapidSpell Web |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.keyoti.rapidSpell.BadWord
public class BadWord
Represents a mis-spelt word in the text.
Field Summary | |
---|---|
static int |
REASON_DUPLICATE
BadWord reason, duplicate word occurance. |
static int |
REASON_SPELLING
BadWord reason, incorrect spelling. |
Constructor Summary | |
---|---|
BadWord(java.lang.String word,
int caretStart,
int caretEnd)
Constructs a BadWord instance. |
|
BadWord(java.lang.String word,
int caretStart,
int caretEnd,
int reason)
Constructs a BadWord instance. |
Method Summary | |
---|---|
int |
getEndPosition()
Gets the position of the end of this word in the main text. |
int |
getReason()
|
int |
getStartPosition()
Gets the position of the start of this word in the main text. |
java.lang.String |
getWord()
Gets the String of this bad word. |
void |
setStartPosition(int p)
Sets the position of the start of this word in the main text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int REASON_DUPLICATE
public static int REASON_SPELLING
Constructor Detail |
---|
public BadWord(java.lang.String word, int caretStart, int caretEnd)
word
- the word String that is misspeltcaretStart
- the position in the original textcaretEnd
- the end position in the textpublic BadWord(java.lang.String word, int caretStart, int caretEnd, int reason)
word
- the word String that is misspeltcaretStart
- the position in the original textcaretEnd
- the end position in the textMethod Detail |
---|
public int getStartPosition()
public void setStartPosition(int p)
public int getEndPosition()
public int getReason()
public java.lang.String getWord()
|
RapidSpell Web |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |