|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.sal.core.pluginsettings.AbstractStringPluginSettings
public abstract class AbstractStringPluginSettings
PluginSettings implementation for datastores that only support Strings. Handles converting Strings into Lists and Properties objects using a '#TYPE_IDENTIFIER' header on the string.
| Constructor Summary | |
|---|---|
AbstractStringPluginSettings()
|
|
| Method Summary | |
|---|---|
Object |
get(String key)
Gets a setting value. |
protected abstract String |
getActual(String key)
Get the actual value |
Object |
put(String key,
Object value)
Puts a setting value. |
protected abstract void |
putActual(String key,
String val)
Put the actual value. |
Object |
remove(String key)
Removes a setting value |
protected abstract void |
removeActual(String key)
Do the actual remove. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractStringPluginSettings()
| Method Detail |
|---|
public Object put(String key,
Object value)
put in interface PluginSettingskey - Setting key. Cannot be nullvalue - Setting value. Must be one of String, List, Properties, Map, or null. null will remove the item from the settings.
IllegalArgumentException - if value is not String, List, Properties, Map, or null.public Object get(String key)
get in interface PluginSettingskey - The setting key. Cannot be null
public Object remove(String key)
remove in interface PluginSettingskey - The setting key
protected abstract void putActual(String key,
String val)
key - The key to put it at.val - The valueprotected abstract String getActual(String key)
key - The key to get
protected abstract void removeActual(String key)
key - The key to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||