public abstract class AbstractStringPluginSettings extends Object implements PluginSettings
Constructor and Description |
---|
AbstractStringPluginSettings() |
Modifier and Type | Method and Description |
---|---|
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.
|
public Object put(String key, Object value)
put
in interface PluginSettings
key
- 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 PluginSettings
key
- The setting key. Cannot be nullpublic Object remove(String key)
remove
in interface PluginSettings
key
- The setting keyprotected 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 getprotected abstract void removeActual(String key)
key
- The key to removeCopyright © 2015 Atlassian. All rights reserved.