public interface LocalizableMessage extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns the localized message string as defined in the current default
ResourceBundle . |
String |
getMessage(Locale locale)
Attempts to retrieve a
ResourceBundle for the given locale and returns
the localized message string as defined in this ResourceBundle . |
String |
getMessage(ResourceBundle resourceBundle)
Returns the localized message string as defined in the given
ResourceBundle . |
String getMessage()
ResourceBundle
.ResourceBundle
String getMessage(Locale locale)
ResourceBundle
for the given locale and returns
the localized message string as defined in this ResourceBundle
. If there
is no ResourceBundle
defined for the given target locale, this method
falls back to the default ResourceBundle
.locale
- the target locale of the result stringResourceBundle
for the target localeString getMessage(ResourceBundle resourceBundle)
ResourceBundle
.resourceBundle
- the ResourceBundle
defining the localized messagesResourceBundle