|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LocaleStore
An interface for classes capable of storing locale data.
| Method Summary | |
|---|---|
void |
addLocale(Locale locale)
Adds the specified locale to the store without any key/value pairs. |
String |
get(Locale locale,
String key)
Fetches a string in the language specified by the locale. |
List<String> |
getKeys(Locale locale)
Fetch a list of keys for the given locale. |
List<Locale> |
getLocales()
Fetch a list of locales for which translations exist. |
void |
put(Locale locale,
String key,
String text)
Stores a string in the language specified by the locale. |
Object |
removeKey(Locale locale,
String key)
Removes a string from the language specified by the locale. |
Object |
removeLocale(Locale locale)
Removes and entire locale. |
| Method Detail |
|---|
List<Locale> getLocales()
List<String> getKeys(Locale locale)
locale - the locale of the Strings the keys point to.
String get(Locale locale,
String key)
locale - the locale for which the String is localized.key - the key used to reference the stored String.
void put(Locale locale,
String key,
String text)
locale - the locale for which the String is localized.key - the key used to reference the stored String.text - the String to store.void addLocale(Locale locale)
locale -
Object removeKey(Locale locale,
String key)
throws Exception
locale - the locale for which the String is localized.key - the key used to reference the stored String.
Exception
Object removeLocale(Locale locale)
throws Exception
locale - the locale to remove.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||