com.keyoti.rapidSpell
Class BadWord
java.lang.Object
|
+--com.keyoti.rapidSpell.BadWord
- public class BadWord
- extends java.lang.Object
Represents a mis-spelt word in the text.
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
REASON_DUPLICATE
public static int REASON_DUPLICATE
- BadWord reason, duplicate word occurance.
REASON_SPELLING
public static int REASON_SPELLING
- BadWord reason, incorrect spelling.
BadWord
public BadWord(java.lang.String word,
int caretStart,
int caretEnd)
- Constructs a BadWord instance.
- Parameters:
word
- the word String that is misspeltcaretStart
- the position in the original textcaretEnd
- the end position in the text
BadWord
public BadWord(java.lang.String word,
int caretStart,
int caretEnd,
int reason)
- Constructs a BadWord instance.
- Parameters:
word
- the word String that is misspeltcaretStart
- the position in the original textcaretEnd
- the end position in the text
getStartPosition
public int getStartPosition()
- Gets the position of the start of this word in the main text.
- Returns:
- int position in the text where this word starts
getEndPosition
public int getEndPosition()
- Gets the position of the end of this word in the main text.
- Returns:
- int position in the text where this word ends
getReason
public int getReason()
getWord
public java.lang.String getWord()
- Gets the String of this bad word.
- Returns:
- String in this BadWord
Copyright © 2002-2005 Keyoti Inc. All Rights Reserved.