|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wallstreetwise.app.jspell.domain.JSpellDictionaryManager
public class JSpellDictionaryManager
This classes manages a collection of dictionaries for use by JSpell. This class is implemented as a singleton, meaning only one instance of this class may exist per virtual machine. To construct an instance of this class you must supply a parameter specifying the location of the JSpell dictionaries. JSpell dictionaries are identified by the extension .jdx. Dictionaries that are compatible with JSpell 2004 start with lex_.
| Field Summary | |
|---|---|
protected boolean |
forceUpperCase
See JSpellDictionary documentation. |
protected boolean |
ignoreDoubleWords
See JSpellDictionary documentation. |
protected boolean |
ignoreFirstCaps
See JSpellDictionary documentation. |
protected boolean |
ignoreIrregularCaps
See JSpellDictionary documentation. |
protected boolean |
ignoreUpper
See JSpellDictionary documentation. |
protected boolean |
ignoreWordsWithNumbers
See JSpellDictionary documentation. |
| Method Summary | |
|---|---|
java.util.HashMap |
getBlockList()
A HashMap containing words to filter or replace. |
java.lang.String |
getDictionaryDirectory()
Returns the directory where the JSpell dictionary files are located. |
JSpellDictionaryLocal |
getJSpellDictionaryLocal(java.lang.String description)
Retrieve a JSpellDictionaryLocal object from the manager using the description containing the language and country code to determine which dictionary object to return. |
JSpellDictionaryLocal |
getJSpellDictionaryLocal(java.lang.String language,
java.lang.String country,
java.lang.String version)
Retrieve a JSpellDictionaryLocal object from the manager using the language and country to determine which dictionary object to return. |
static JSpellDictionaryManager |
getJSpellDictionaryManager()
Returns an instance of the JSpellDictionaryManager object. |
java.util.Vector |
getLanguages()
Returns a Vector containing String descriptions of the languages and country codes that this JSpellDictionaryManager is managing. |
boolean |
isForceUpperCase()
Getter for property forceUpperCase. |
boolean |
isIgnoreDoubleWords()
Getter for property ignoreDoubleWords. |
boolean |
isIgnoreFirstCaps()
Getter for property ignoreFirstCaps. |
boolean |
isIgnoreIrregularCaps()
Getter for property ignoreIrregularCaps. |
boolean |
isIgnoreUpper()
Getter for property ignoreUpper. |
boolean |
isIgnoreWordsWithNumbers()
Getter for property ignoreWordsWithNumbers. |
boolean |
setDictionaryDirectory(java.lang.String dictionaryDirectory)
Setter for property dictionaryDirectory. |
void |
setForceUpperCase(boolean forceUpperCase)
Setter for property forceUpperCase. |
void |
setIgnoreDoubleWords(boolean ignoreDoubleWords)
Setter for property ignoreDoubleWords. |
void |
setIgnoreFirstCaps(boolean ignoreFirstCaps)
Setter for property ignoreFirstCaps. |
void |
setIgnoreIrregularCaps(boolean ignoreIrregularCaps)
Setter for property ignoreIrregularCaps. |
void |
setIgnoreUpper(boolean ignoreUpper)
Setter for property ignoreUpper. |
void |
setIgnoreWordsWithNumbers(boolean ignoreWordsWithNumbers)
Setter for property ignoreWordsWithNumbers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean ignoreIrregularCaps
protected boolean forceUpperCase
protected boolean ignoreFirstCaps
protected boolean ignoreUpper
protected boolean ignoreDoubleWords
protected boolean ignoreWordsWithNumbers
| Method Detail |
|---|
public static JSpellDictionaryManager getJSpellDictionaryManager()
public JSpellDictionaryLocal getJSpellDictionaryLocal(java.lang.String language,
java.lang.String country,
java.lang.String version)
language - ISO language code.country - ISO country code.
public JSpellDictionaryLocal getJSpellDictionaryLocal(java.lang.String description)
description - a String description of the dictionary, e.g., "English (US)" or "Spanish (ES)"
public java.util.Vector getLanguages()
public java.lang.String getDictionaryDirectory()
public boolean setDictionaryDirectory(java.lang.String dictionaryDirectory)
dictionaryDirectory - New value of property dictionaryDirectory.
public java.util.HashMap getBlockList()
public boolean isForceUpperCase()
public void setForceUpperCase(boolean forceUpperCase)
forceUpperCase - New value of property forceUpperCase.public boolean isIgnoreDoubleWords()
public void setIgnoreDoubleWords(boolean ignoreDoubleWords)
ignoreDoubleWords - New value of property ignoreDoubleWords.public boolean isIgnoreFirstCaps()
public void setIgnoreFirstCaps(boolean ignoreFirstCaps)
ignoreFirstCaps - New value of property ignoreFirstCaps.public boolean isIgnoreIrregularCaps()
public void setIgnoreIrregularCaps(boolean ignoreIrregularCaps)
ignoreIrregularCaps - New value of property ignoreIrregularCaps.public boolean isIgnoreUpper()
public void setIgnoreUpper(boolean ignoreUpper)
ignoreUpper - New value of property ignoreUpper.public boolean isIgnoreWordsWithNumbers()
public void setIgnoreWordsWithNumbers(boolean ignoreWordsWithNumbers)
ignoreWordsWithNumbers - New value of property ignoreWordsWithNumbers.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||