public interface Localizable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
Creates and returns a localized message, given the key of the message
in the resource bundle and the message parameters.
|
java.util.Locale |
getLocale()
Returns the current locale or null if the locale currently used is
the default one.
|
void |
setLocale(java.util.Locale l)
Provides a way to the user to specify a locale which override the
default one.
|
void setLocale(java.util.Locale l)
l
- The locale to set.java.util.Locale getLocale()
java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args) throws java.util.MissingResourceException
key
- The key used to retreive the message from the resource
bundle.args
- The objects that compose the message.java.util.MissingResourceException
- if the key is not in the bundle.Copyright © 2022 Apache Software Foundation. All Rights Reserved.