public interface ResourceBundle extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getValue(Class<? extends BundleKey> key)
Returns the value for the given key (and the configured bundle and local).
|
String |
getValue(String key)
Returns the value for the given key (and the configured bundle and local).
|
ResourceBundle |
useBundle(Class<?> bundleClass)
Allows to specify a class which is mapped to a bundle
|
ResourceBundle |
useBundle(String bundleName)
Allows to specify a bundle name
|
ResourceBundle |
useLocale(Locale locale)
Allows to specify a locale
|
ResourceBundle useBundle(String bundleName)
bundleName
- name of the bundle which should be usedResourceBundle useBundle(Class<?> bundleClass)
bundleClass
- class mapped to a bundleResourceBundle useLocale(Locale locale)
locale
- locale which should be usedString getValue(Class<? extends BundleKey> key)
key
- current keyCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.