com.atlassian.jira.mock
Class MockApplicationProperties
java.lang.Object
com.atlassian.jira.mock.MockApplicationProperties
- All Implemented Interfaces:
- ApplicationProperties
public class MockApplicationProperties
- extends Object
- implements ApplicationProperties
Simple ApplicationProperties implementation backed by a Map.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockApplicationProperties
public MockApplicationProperties()
MockApplicationProperties
public MockApplicationProperties(Map initialProperties)
getText
public String getText(String name)
- Specified by:
getText
in interface ApplicationProperties
getDefaultBackedText
public String getDefaultBackedText(String name)
- Specified by:
getDefaultBackedText
in interface ApplicationProperties
setText
public void setText(String name,
String value)
- Specified by:
setText
in interface ApplicationProperties
getString
public String getString(String name)
- Specified by:
getString
in interface ApplicationProperties
getDefaultKeys
public Collection<String> getDefaultKeys()
- Specified by:
getDefaultKeys
in interface ApplicationProperties
getDefaultBackedString
public String getDefaultBackedString(String name)
- Specified by:
getDefaultBackedString
in interface ApplicationProperties
getDefaultString
public String getDefaultString(String name)
- Specified by:
getDefaultString
in interface ApplicationProperties
setString
public void setString(String name,
String value)
- Specified by:
setString
in interface ApplicationProperties
getOption
public boolean getOption(String key)
- Specified by:
getOption
in interface ApplicationProperties
getKeys
public Collection getKeys()
- Specified by:
getKeys
in interface ApplicationProperties
setOption
public void setOption(String key,
boolean value)
- Specified by:
setOption
in interface ApplicationProperties
getEncoding
public String getEncoding()
- Specified by:
getEncoding
in interface ApplicationProperties
getMailEncoding
public String getMailEncoding()
- Specified by:
getMailEncoding
in interface ApplicationProperties
setEncoding
public void setEncoding(String encoding)
getContentType
public String getContentType()
- Specified by:
getContentType
in interface ApplicationProperties
refresh
public void refresh()
- Specified by:
refresh
in interface ApplicationProperties
getDefaultLocale
public Locale getDefaultLocale()
- Specified by:
getDefaultLocale
in interface ApplicationProperties
getStringsWithPrefix
public Collection getStringsWithPrefix(String prefix)
- Specified by:
getStringsWithPrefix
in interface ApplicationProperties
asMap
public Map<String,Object> asMap()
- Description copied from interface:
ApplicationProperties
- This will return all application and typed values. For example if the property is a boolean
then a Boolean object will be returned.
If an application property has a null value, then the key will still be in the
Map.keySet()
- Specified by:
asMap
in interface ApplicationProperties
- Returns:
- a map of key to actual value object
Copyright © 2002-2012 Atlassian. All Rights Reserved.