org.vfny.geoserver.control.internal
Interface IPreferenceStoreStrategy

All Known Implementing Classes:
PropertyPreferenceStoreStrategy

public interface IPreferenceStoreStrategy

NOT API. A "strategy" object that the PreferenceControllerImpl uses to store its data.

Author:
Jesse

Method Summary
 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.
 

Method Detail

get

java.lang.String get(java.lang.String key)
Gets the value of the preference

Parameters:
key - preference key
Returns:
the value

put

void put(java.lang.String key,
         java.lang.String value)
Sets the prefence

Parameters:
key - the preference key
value - the new value.

unset

void unset(java.lang.String key)
Clears the preference so the default is used.

Parameters:
key - the preference key;

keys

java.lang.String[] keys()
Returns all the keys of the existing preferences

Returns:
all the keys of the existing preferences

setValidator

void setValidator(IValidator validator)
Sets the validator that this strategy uses.

Parameters:
validator - new validator.