com.swabunga.spell.engine
public abstract class Configuration extends Object
See Also: EditDistance
Field Summary | |
---|---|
static String | COST_CHANGE_CASE
used by EditDistance: the cost of having to change case, for example, from i to I.
|
static String | COST_INSERT_CHAR used by EditDistance: the cost of having to insert a character (integer greater than 0) |
static String | COST_REMOVE_CHAR used by EditDistance: the cost of having to remove a character (integer greater than 0) |
static String | COST_SUBST_CHARS
used by EditDistance: the cost of having to substitute one character for another
for the sub value to ever be used, it should be smaller than the COST_REMOVE_CHAR or COST_INSERT_CHAR values
(integer greater than 0) |
static String | COST_SWAP_CHARS
used by EditDistance: the cost of having to swap two adjoining characters
for the swap value to ever be used, it should be smaller than the COST_REMOVE_CHAR or COST_INSERT_CHAR values
(integer greater than 0) |
static String | SPELL_IGNOREDIGITWORDS words that have digits in them are not spell checked, example: "mach5" (boolean) |
static String | SPELL_IGNOREINTERNETADDRESSES words that look like an Internet address are not spell checked, example: "http://www.google.com" (boolean) |
static String | SPELL_IGNOREMIXEDCASE words that have mixed case are not spell checked, example: "SpellChecker" (boolean) |
static String | SPELL_IGNOREMULTIPLEWORDS I don't know what this does. |
static String | SPELL_IGNORESENTENCECAPITALIZATION the first word of a sentence is expected to start with an upper case letter (boolean) |
static String | SPELL_IGNOREUPPERCASE words that are all upper case are not spell checked, example: "CIA" (boolean) |
static String | SPELL_THRESHOLD the maximum cost of suggested spelling. |
Method Summary | |
---|---|
abstract boolean | getBoolean(String key)
Gets one of the boolean constants |
static Configuration | getConfiguration()
gets a new default Configuration |
static Configuration | getConfiguration(String className)
Returns a new instance of a Configuration class |
abstract int | getInteger(String key)
Gets one of the integer constants |
abstract void | setBoolean(String key, boolean value)
Sets one of the boolean constants |
abstract void | setInteger(String key, int value)
Sets one of the integer constants |
Parameters: key one of the boolean constants defined in this class
Returns: boolean value of the setting
Returns: Configuration
Parameters: className - the class to return, must be based on Configuration
Returns: Configuration
Parameters: key one of the integer constants defined in this class
Returns: int value of the setting
Parameters: key one of the boolean constants defined in this class value new boolean value of this setting
Parameters: key one of the integer constants defined in this class value new integer value of the constant