|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceBundle
Allows to implement type-safe resource-bundles
Method Summary | |
---|---|
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 |
Method Detail |
---|
ResourceBundle useBundle(String bundleName)
bundleName
- name of the bundle which should be used
ResourceBundle useBundle(Class<?> bundleClass)
bundleClass
- class mapped to a bundle
ResourceBundle useLocale(Locale locale)
locale
- locale which should be used
String getValue(Class<? extends BundleKey> key)
key
- current key
String getValue(String key)
key
- current key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |