|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.settings.impl.GenericSettingsImpl
org.pf.settings.impl.MultiValueSettingsImpl
public class MultiValueSettingsImpl
Implementation of the MultiValueSettings interface.
| Field Summary |
|---|
| Fields inherited from class org.pf.settings.impl.GenericSettingsImpl |
|---|
DEFAULT_CATEGORY_NAME |
| Constructor Summary | |
|---|---|
MultiValueSettingsImpl()
Initialize the new instance with default values. |
|
MultiValueSettingsImpl(java.lang.String aName)
Initialize the new instance with a name. |
|
| Method Summary | |
|---|---|
void |
addValue(java.lang.String keyName,
java.lang.String value)
Adds the value to the given key in the default category. |
void |
addValue(java.lang.String categoryName,
java.lang.String keyName,
java.lang.String value)
Adds the value to the given key in the specified category. |
void |
addValues(java.lang.String keyName,
java.lang.String[] values)
Adds the values to the given key in the default category. |
void |
addValues(java.lang.String categoryName,
java.lang.String keyName,
java.lang.String[] values)
Adds the values to the given key in the specified category. |
java.lang.String[] |
getValuesOf(java.lang.String keyName)
Returns the values that are registered under the given keyName. |
java.lang.String[] |
getValuesOf(java.lang.String categoryName,
java.lang.String keyName)
Returns the values of keyName in the specified category. |
void |
removeValue(java.lang.String keyName,
java.lang.String value)
Removes the given value from the setting with the specified key which is looked up in the default category. |
void |
removeValue(java.lang.String categoryName,
java.lang.String keyName,
java.lang.String value)
Removes the given value from the setting with the specified key in the specified category. |
void |
setValuesOf(java.lang.String keyName,
java.lang.String[] values)
Sets the values of given key in the default category. |
void |
setValuesOf(java.lang.String categoryName,
java.lang.String keyName,
java.lang.String[] values)
Sets the values of given key in the specified category. |
| Methods inherited from class org.pf.settings.impl.GenericSettingsImpl |
|---|
defaultSettings, getCaseSensitive, getCategoryNames, getDefaults, getKeyNamesOf, getKeyNamesOfDefaultCategory, getName, getSettingsNameOf, getSettingsNameOf, getValueOf, getValueOf, removeCategory, removeDefaultCategory, removeKey, removeKey, setCaseSensitive, setDefaults, setName, setValueOf, setValueOf |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.pf.settings.Settings |
|---|
removeCategory, removeDefaultCategory, removeKey, removeKey, setValueOf, setValueOf |
| Methods inherited from interface org.pf.settings.ReadOnlySettings |
|---|
getCategoryNames, getDefaults, getKeyNamesOf, getKeyNamesOfDefaultCategory, getName, getSettingsNameOf, getSettingsNameOf, getValueOf, getValueOf, setDefaults, setName |
| Constructor Detail |
|---|
public MultiValueSettingsImpl()
public MultiValueSettingsImpl(java.lang.String aName)
aName - The name of the whole settings object| Method Detail |
|---|
public java.lang.String[] getValuesOf(java.lang.String categoryName,
java.lang.String keyName)
getValuesOf in interface MultiValueSettingscategoryName - The name of the category (null means the default category)keyName - The name of a key inside the category
public java.lang.String[] getValuesOf(java.lang.String keyName)
getValuesOf in interface MultiValueSettingskeyName - The name of a key inside the default category
public void setValuesOf(java.lang.String categoryName,
java.lang.String keyName,
java.lang.String[] values)
categoryName - The name of the category (null means the default category)keyName - The name of the key the value should be assigned to.values - The values to be assigned to the key
public void setValuesOf(java.lang.String keyName,
java.lang.String[] values)
keyName - The name of the key the values should be assigned to.values - The values to be assigned to the key
public void addValue(java.lang.String categoryName,
java.lang.String keyName,
java.lang.String value)
categoryName - The name of the category (null means the default category)keyName - The name of the key the value should be added to.value - The value to be added to the key's current values
public void addValue(java.lang.String keyName,
java.lang.String value)
keyName - The name of the key the value should be added to.value - The value to be added to the key's current valuesSettings.setValueOf(String,String)
public void addValues(java.lang.String categoryName,
java.lang.String keyName,
java.lang.String[] values)
categoryName - The name of the category (null means the default category)keyName - The name of the key the value should be added to.values - The values to be added to the key's current values
public void addValues(java.lang.String keyName,
java.lang.String[] values)
keyName - The name of the key the values should be added to.values - The values to be added to the key's current values
public void removeValue(java.lang.String categoryName,
java.lang.String keyName,
java.lang.String value)
removeValue in interface MultiValueSettingscategoryName - The name of the category the key resides inkeyName - The name of the key from which to remove the valuevalue - The value to remove
public void removeValue(java.lang.String keyName,
java.lang.String value)
removeValue in interface MultiValueSettingskeyName - The name of the key from which to remove the valuevalue - The value to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||