|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.swabunga.spell.engine.Configuration
com.swabunga.spell.engine.PropertyConfiguration
public class PropertyConfiguration
Implementation class to read the properties controlling the spell engine.
The properties are read form the configuration.properties file.
| Field Summary | |
|---|---|
java.net.URL |
filename
The name of the file containing spell engine properties |
java.util.Properties |
prop
The persistent set of properties supported by the spell engine |
| Fields inherited from class com.swabunga.spell.engine.Configuration |
|---|
COST_CHANGE_CASE, COST_INSERT_CHAR, COST_REMOVE_CHAR, COST_SUBST_CHARS, COST_SWAP_CHARS, SPELL_IGNOREDIGITWORDS, SPELL_IGNOREINTERNETADDRESSES, SPELL_IGNOREMIXEDCASE, SPELL_IGNOREMULTIPLEWORDS, SPELL_IGNORESENTENCECAPITALIZATION, SPELL_IGNOREUPPERCASE, SPELL_THRESHOLD |
| Constructor Summary | |
|---|---|
PropertyConfiguration()
Constructs and loads spell engine properties configuration. |
|
| Method Summary | |
|---|---|
boolean |
getBoolean(java.lang.String key)
Gets one of the boolean constants |
int |
getInteger(java.lang.String key)
Gets one of the integer constants |
void |
save()
Writes the property list (key and element pairs) in the PropertyConfiguration file. |
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 |
| Methods inherited from class com.swabunga.spell.engine.Configuration |
|---|
getConfiguration, getConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.Properties prop
public java.net.URL filename
| Constructor Detail |
|---|
public PropertyConfiguration()
| Method Detail |
|---|
public boolean getBoolean(java.lang.String key)
Configuration
getBoolean in class Configurationkey - one of the boolean constants defined in this class
Configuration.getBoolean(String)public int getInteger(java.lang.String key)
Configuration
getInteger in class Configurationkey - one of the integer constants defined in this class
Configuration.getInteger(String)
public void setBoolean(java.lang.String key,
boolean value)
Configuration
setBoolean 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)
Configuration
setInteger in class Configurationkey - one of the integer constants defined in this classvalue - new integer value of the constantConfiguration.setInteger(String, int)public void save()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||