Class LocalizableMessage
- java.lang.Object
-
- org.glassfish.grizzly.localization.LocalizableMessage
-
- All Implemented Interfaces:
Localizable
public final class LocalizableMessage extends Object implements Localizable
- Author:
- WS Development Team
-
-
Field Summary
-
Fields inherited from interface org.glassfish.grizzly.localization.Localizable
NOT_LOCALIZABLE
-
-
Constructor Summary
Constructors Constructor Description LocalizableMessage(String bundlename, String key, Object... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]getArguments()Returns the arguments for message formatting.StringgetKey()Gets the key in the resource bundle.StringgetResourceBundleName()
-
-
-
Method Detail
-
getKey
public String getKey()
Description copied from interface:LocalizableGets the key in the resource bundle.- Specified by:
getKeyin 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
public Object[] getArguments()
Description copied from interface:LocalizableReturns the arguments for message formatting.- Specified by:
getArgumentsin interfaceLocalizable- Returns:
- can be an array of length 0 but never be null.
-
getResourceBundleName
public String getResourceBundleName()
- Specified by:
getResourceBundleNamein interfaceLocalizable
-
-