public class PropertyConfiguration extends Configuration
configuration.properties file.COST_CHANGE_CASE, COST_INSERT_CHAR, COST_REMOVE_CHAR, COST_SUBST_CHARS, COST_SWAP_CHARS, SPELL_IGNORE_DIGIT_WORDS, SPELL_IGNORE_INTERNET_ADDRESSES, SPELL_IGNORE_MIXED_CASE, SPELL_IGNORE_MULTIPLE_WORDS, SPELL_IGNORE_SENTENCE_CAPITALIZATION, SPELL_IGNORE_UPPER_CASE, SPELL_THRESHOLD| Constructor and Description |
|---|
PropertyConfiguration()
Constructs and loads spell engine properties configuration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(java.lang.String key)
Recovers the boolean value associated with the given key.
|
int |
getInteger(java.lang.String key)
Retrieves the integer value associated with the given key.
|
void |
save()
Deprecated.
|
void |
setBoolean(java.lang.String key,
boolean value)
Sets one of the boolean constants
|
void |
setInteger(java.lang.String key,
int value)
Sets one of the integer constants
|
getConfiguration, getConfigurationpublic PropertyConfiguration()
public boolean getBoolean(java.lang.String key)
getBoolean in class Configurationkey - a property namepublic int getInteger(java.lang.String key)
getInteger in class Configurationkey - a property namepublic void setBoolean(java.lang.String key,
boolean value)
ConfigurationsetBoolean in class Configurationkey - one of the boolean constants defined in this classvalue - new boolean value of this settingConfiguration.setBoolean(String, boolean)public void setInteger(java.lang.String key,
int value)
ConfigurationsetInteger in class Configurationkey - one of the integer constants defined in this classvalue - new integer value of the constantConfiguration.setInteger(String, int)@Deprecated public void save()