Package com.sun.istack.localization
Class LocalizableMessage
java.lang.Object
com.sun.istack.localization.LocalizableMessage
- All Implemented Interfaces:
Localizable
- Author:
- WS Development Team
-
Field Summary
Fields inherited from interface com.sun.istack.localization.Localizable
NOT_LOCALIZABLE
-
Constructor Summary
ConstructorsConstructorDescriptionLocalizableMessage
(String bundlename, LocalizableMessageFactory.ResourceBundleSupplier rbSupplier, String key, Object... args) LocalizableMessage
(String bundlename, String key, Object... args) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionObject[]
Returns the arguments for message formatting.getKey()
Gets the key in the resource bundle.getResourceBundle
(Locale locale)
-
Constructor Details
-
LocalizableMessage
Deprecated. -
LocalizableMessage
public LocalizableMessage(String bundlename, LocalizableMessageFactory.ResourceBundleSupplier rbSupplier, String key, Object... args)
-
-
Method Details
-
getKey
Description copied from interface:Localizable
Gets the key in the resource bundle.- Specified by:
getKey
in interfaceLocalizable
- Returns:
- if this method returns
Localizable.NOT_LOCALIZABLE
, that means the message is not localizable, and the first item ofLocalizable.getArguments()
array holds a String.
-
getArguments
Description copied from interface:Localizable
Returns the arguments for message formatting.- Specified by:
getArguments
in interfaceLocalizable
- Returns:
- can be an array of length 0 but never be null.
-
getResourceBundleName
- Specified by:
getResourceBundleName
in interfaceLocalizable
-
getResourceBundle
- Specified by:
getResourceBundle
in interfaceLocalizable
-