Interface Localizable
-
- All Known Implementing Classes:
LocalizableMessage
public interface LocalizableLocalizable message.- Author:
- WS Development Team
-
-
Field Summary
Fields Modifier and Type Field Description static StringNOT_LOCALIZABLESpecial constant that represents a message that is not localizable.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object[]getArguments()Returns the arguments for message formatting.StringgetKey()Gets the key in the resource bundle.ResourceBundlegetResourceBundle(Locale locale)Get the resource bundle of the given localization.StringgetResourceBundleName()Get the name of the localization messages resource bundle.
-
-
-
Field Detail
-
NOT_LOCALIZABLE
static final String NOT_LOCALIZABLE
Special constant that represents a message that is not localizable.Use of "new" is to create an unique instance.
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
String getKey()
Gets the key in the resource bundle.- Returns:
- if this method returns
NOT_LOCALIZABLE, that means the message is not localizable, and the first item ofgetArguments()array holds aString.
-
getArguments
Object[] getArguments()
Returns the arguments for message formatting.- Returns:
- can be an array of length 0 but never be
null.
-
getResourceBundleName
String getResourceBundleName()
Get the name of the localization messages resource bundle.- Returns:
- the localization messages resource bundle name.
-
getResourceBundle
ResourceBundle getResourceBundle(Locale locale)
Get the resource bundle of the given localization.- Parameters:
locale- the givenLocale- Returns:
- the localization messages resource bundle for given locale.
-
-