com.atlassian.sal.testresources.pluginsettings
Class MockPluginSettings
java.lang.Object
com.atlassian.sal.testresources.pluginsettings.MockPluginSettings
- All Implemented Interfaces:
- PluginSettings
public class MockPluginSettings
- extends Object
- implements PluginSettings
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockPluginSettings
public MockPluginSettings()
get
public Object get(String key)
- Description copied from interface:
PluginSettings
- Gets a setting value. The setting returned should be specific to this context settings object and not cascade
the value to a global context.
- Specified by:
get in interface PluginSettings
- Parameters:
key - The setting key. Cannot be null
- Returns:
- The setting value. May be null
put
public Object put(String key,
Object value)
- Description copied from interface:
PluginSettings
- Puts a setting value.
- Specified by:
put in interface PluginSettings
- Parameters:
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.
- Returns:
- The setting value that was over ridden. Null if none existed.
remove
public Object remove(String key)
- Description copied from interface:
PluginSettings
- Removes a setting value
- Specified by:
remove in interface PluginSettings
- Parameters:
key - The setting key
- Returns:
- The setting value that was removed. Null if nothing was removed.
Copyright © 2010 Atlassian. All Rights Reserved.