com.atlassian.jira.web.bean.i18n
Class MockTranslationStore

java.lang.Object
  extended by com.atlassian.jira.web.bean.i18n.MockTranslationStore
All Implemented Interfaces:
TranslationStore

public class MockTranslationStore
extends Object
implements TranslationStore

Since:
v6.2.3

Constructor Summary
MockTranslationStore(Map<String,String> pairs)
           
MockTranslationStore(String... pairs)
           
 
Method Summary
 MockTranslationStore add(String... pairs)
           
 MockTranslationStore add(String key, String value)
           
 Map<String,String> asMap()
           
 boolean containsKey(String key)
          Whether this TranslationStore contains the given key.
 String get(String key)
          Returns the i18n value associated with a key.
 Iterable<String> keys()
          Returns an Iterable over this TranslationStore's keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockTranslationStore

public MockTranslationStore(String... pairs)

MockTranslationStore

public MockTranslationStore(Map<String,String> pairs)
Method Detail

asMap

public Map<String,String> asMap()

get

public String get(String key)
Description copied from interface: TranslationStore
Returns the i18n value associated with a key.

Specified by:
get in interface TranslationStore
Parameters:
key - a String key
Returns:
a String

containsKey

public boolean containsKey(String key)
Description copied from interface: TranslationStore
Whether this TranslationStore contains the given key.

Specified by:
containsKey in interface TranslationStore
Parameters:
key - a String key
Returns:
true if this TranslationStore contains the given key

keys

public Iterable<String> keys()
Description copied from interface: TranslationStore
Returns an Iterable over this TranslationStore's keys.

Specified by:
keys in interface TranslationStore
Returns:
an Iterable<String>

add

public MockTranslationStore add(String... pairs)

add

public MockTranslationStore add(String key,
                                String value)


Copyright © 2002-2014 Atlassian. All Rights Reserved.