RapidSpell Desktop


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.


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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REASON_DUPLICATE

public static int REASON_DUPLICATE
BadWord reason, duplicate word occurance.

REASON_SPELLING

public static int REASON_SPELLING
BadWord reason, incorrect spelling.
Constructor Detail

BadWord

public BadWord(java.lang.String word,
               int caretStart,
               int caretEnd)
Constructs a BadWord instance.
Parameters:
word - the word String that is misspelt
caretStart - the position in the original text
caretEnd - 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 misspelt
caretStart - the position in the original text
caretEnd - the end position in the text
Method Detail

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

RapidSpell Desktop


Copyright © 2002-2005 Keyoti Inc. All Rights Reserved.