|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vfny.geoserver.control.internal.PropertyPreferenceStoreStrategy
public class PropertyPreferenceStoreStrategy
Implementation backing onto a properties file.
| Constructor Summary | |
|---|---|
PropertyPreferenceStoreStrategy(java.util.Properties properties)
|
|
PropertyPreferenceStoreStrategy(java.lang.String propertiesFile)
|
|
| Method Summary | |
|---|---|
void |
flush()
|
java.lang.String |
get(java.lang.String key)
Gets the value of the preference |
java.lang.String[] |
keys()
Returns all the keys of the existing preferences |
void |
put(java.lang.String key,
java.lang.String value)
Sets the prefence |
void |
setValidator(IValidator validator)
Sets the validator that this strategy uses. |
void |
unset(java.lang.String key)
Clears the preference so the default is used. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyPreferenceStoreStrategy(java.lang.String propertiesFile)
throws java.io.IOException
java.io.IOExceptionpublic PropertyPreferenceStoreStrategy(java.util.Properties properties)
| Method Detail |
|---|
public java.lang.String get(java.lang.String key)
IPreferenceStoreStrategy
get in interface IPreferenceStoreStrategykey - preference key
public void put(java.lang.String key,
java.lang.String value)
IPreferenceStoreStrategy
put in interface IPreferenceStoreStrategykey - the preference keyvalue - the new value.
public void flush()
throws java.io.IOException
java.io.IOExceptionpublic void unset(java.lang.String key)
IPreferenceStoreStrategy
unset in interface IPreferenceStoreStrategykey - the preference key;public java.lang.String[] keys()
IPreferenceStoreStrategy
keys in interface IPreferenceStoreStrategypublic void setValidator(IValidator validator)
IPreferenceStoreStrategy
setValidator in interface IPreferenceStoreStrategyvalidator - new validator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||