org.incava.doctorj
Class CommentSpellCheck

java.lang.Object
  extended by org.incava.doctorj.CommentSpellCheck
Direct Known Subclasses:
ItemCommentSpellCheck

public class CommentSpellCheck
extends java.lang.Object


Field Summary
static CommentSpellCheck instance
           
 
Constructor Summary
protected CommentSpellCheck()
           
 
Method Summary
 boolean addDictionary(java.lang.String dictionary)
           
 void addWord(java.lang.String word)
           
 void check(java.lang.String description)
           
protected  void checkCurrentWord()
           
protected  void checkWord(java.lang.String word, int position)
           
protected  boolean consume(java.lang.String what)
           
protected  void consumeTo(java.lang.String what)
           
static CommentSpellCheck getInstance()
           
protected  void skipBlanks()
           
protected  void skipLink()
           
protected  void skipSection(java.lang.String section)
           
protected  void skipThroughWord()
           
protected  void skipToWord()
           
protected  void wordMisspelled(java.lang.String word, int position, java.util.Map nearMatches)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static CommentSpellCheck instance
Constructor Detail

CommentSpellCheck

protected CommentSpellCheck()
Method Detail

getInstance

public static CommentSpellCheck getInstance()

addDictionary

public boolean addDictionary(java.lang.String dictionary)

addWord

public void addWord(java.lang.String word)

check

public void check(java.lang.String description)

skipSection

protected void skipSection(java.lang.String section)

skipLink

protected void skipLink()

skipBlanks

protected void skipBlanks()

skipToWord

protected void skipToWord()

checkWord

protected void checkWord(java.lang.String word,
                         int position)

wordMisspelled

protected void wordMisspelled(java.lang.String word,
                              int position,
                              java.util.Map nearMatches)

consume

protected boolean consume(java.lang.String what)

consumeTo

protected void consumeTo(java.lang.String what)

checkCurrentWord

protected void checkCurrentWord()

skipThroughWord

protected void skipThroughWord()