com.jspell.domain.net
Class JSpellV

java.lang.Object
  extended by com.jspell.domain.net.JSpellV
Direct Known Subclasses:
JSpellIFrameValidator, JSpellValidator

public class JSpellV
extends java.lang.Object

Base class for the JSpellValidator and JSpellIFrameValidator classes.


Field Summary
protected static java.lang.String dictionaryLocation
          An instance of the JSpellDictionaryLocal associated with this validator.
protected static JSpellValidator validator
          An instance of JSpellValidator
 
Constructor Summary
JSpellV()
           
 
Method Summary
static java.lang.String getDictionaryLocation()
          Returns the JSpellDictionaryLocal object.
 boolean getForceUpperCase()
          Should spell checker work in CAPS only mode?
 boolean getIgnoreDoubleWords()
          Should repeated words be ignored for spell checking?
 boolean getIgnoreFirstCaps()
          Should the first letter of a sentence or field be capitalized?
 boolean getIgnoreIrregularCaps()
          Should sentence capitalization be ignored.
 boolean getIgnoreUpper()
          Should words in UPPER CASE be ignored during spell checking?
 boolean getIgnoreWordsWithNumbers()
          Should words with numbers be ignored for spell checking, e.g., H20?
 JSpellDictionaryManager getJSpellDictionaryManager()
          Return an instance of the JSpellDictionaryManager.
static boolean initManager()
          Initializes the dictionaryManager.
static boolean setDictionaryLocation(java.lang.String dictionaryLocation)
          Sets the location of the JSpell dictionaries.
 void setForceUpperCase(boolean newValue)
          Should spell checker work in CAPS only mode?
 void setIgnoreDoubleWords(boolean newValue)
          Should repeated words be ignored for spell checking?
 void setIgnoreFirstCaps(boolean newValue)
          Should the first letter of a sentence or field be capitalized?
 void setIgnoreIrregularCaps(boolean newValue)
          Should sentence capitalization be ignored.
 void setIgnoreUpper(boolean newValue)
          Should words in UPPER CASE be ignored during spell checking?
 void setIgnoreWordsWithNumbers(boolean newValue)
          Should words with numbers be ignored for spell checking, e.g., H20?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validator

protected static JSpellValidator validator
An instance of JSpellValidator


dictionaryLocation

protected static java.lang.String dictionaryLocation
An instance of the JSpellDictionaryLocal associated with this validator.

Constructor Detail

JSpellV

public JSpellV()
Method Detail

initManager

public static boolean initManager()
Initializes the dictionaryManager.

Returns:
true or false if the JSpellDictionaryManager was initialized properly.

setDictionaryLocation

public static boolean setDictionaryLocation(java.lang.String dictionaryLocation)
Sets the location of the JSpell dictionaries.

Parameters:
dictionaryLocation - The location of the JSpell dictionaries.
Returns:
true or false if the the dictionaries are initialized properly.

getDictionaryLocation

public static java.lang.String getDictionaryLocation()
Returns the JSpellDictionaryLocal object.

Returns:
a JSpellDictionaryLocal object.

setIgnoreIrregularCaps

public void setIgnoreIrregularCaps(boolean newValue)
Should sentence capitalization be ignored.

Parameters:
newValue - true or false.

getIgnoreIrregularCaps

public boolean getIgnoreIrregularCaps()
Should sentence capitalization be ignored.

Returns:
true or false.

setIgnoreFirstCaps

public void setIgnoreFirstCaps(boolean newValue)
Should the first letter of a sentence or field be capitalized?

Parameters:
newValue - true or false.

getIgnoreFirstCaps

public boolean getIgnoreFirstCaps()
Should the first letter of a sentence or field be capitalized?

Returns:
true or false.

setIgnoreUpper

public void setIgnoreUpper(boolean newValue)
Should words in UPPER CASE be ignored during spell checking?

Parameters:
newValue - true or false.

getIgnoreUpper

public boolean getIgnoreUpper()
Should words in UPPER CASE be ignored during spell checking?

Returns:
true or false.

setIgnoreWordsWithNumbers

public void setIgnoreWordsWithNumbers(boolean newValue)
Should words with numbers be ignored for spell checking, e.g., H20?

Parameters:
newValue - true or false.

getIgnoreWordsWithNumbers

public boolean getIgnoreWordsWithNumbers()
Should words with numbers be ignored for spell checking, e.g., H20?

Returns:
true or false.

setIgnoreDoubleWords

public void setIgnoreDoubleWords(boolean newValue)
Should repeated words be ignored for spell checking?

Parameters:
newValue - true or false.

getIgnoreDoubleWords

public boolean getIgnoreDoubleWords()
Should repeated words be ignored for spell checking?

Returns:
true or false.

setForceUpperCase

public void setForceUpperCase(boolean newValue)
Should spell checker work in CAPS only mode?

Parameters:
newValue - true or false.

getForceUpperCase

public boolean getForceUpperCase()
Should spell checker work in CAPS only mode?

Returns:
true or false.

getJSpellDictionaryManager

public JSpellDictionaryManager getJSpellDictionaryManager()
Return an instance of the JSpellDictionaryManager.

Returns:
a JSpellDictionaryManager object.


JSpell SDK - Spell Checker for the Java ™ Platform
Copyright © 2009 Page Scholar Inc, All Rights Reserved - http://www.jspell.com