protected class EntityPropertiesServiceSimple.ResourceBundleMessageSource extends Object implements AbstractEntityPropertiesService.MessageBundle
| Constructor and Description |
|---|
ResourceBundleMessageSource(ResourceBundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getPropertyKeys(Locale locale)
Get all the keys for a specific Locale
|
String |
getPropertyMessage(String code,
Object[] args,
Locale locale)
Try to resolve the message.
|
public ResourceBundleMessageSource(ResourceBundle bundle)
public String getPropertyMessage(String code, Object[] args, Locale locale)
AbstractEntityPropertiesService.MessageBundlegetPropertyMessage in interface AbstractEntityPropertiesService.MessageBundlecode - the code to lookup up, such as 'calculator.noRateSet'args - Array of arguments that will be filled in for params within
the message (params look like "{0}", "{1,date}", "{2,time}" within a message),
or null if none.locale - the Locale in which to do the lookuppublic List<String> getPropertyKeys(Locale locale)
AbstractEntityPropertiesService.MessageBundlegetPropertyKeys in interface AbstractEntityPropertiesService.MessageBundlelocale - the Locale in which to do the lookupCopyright © 2007–2020 CARET, University of Cambridge. All rights reserved.