Package org.glassfish.tyrus.core.l10n
Class LocalizableMessage
- java.lang.Object
-
- org.glassfish.tyrus.core.l10n.LocalizableMessage
-
- All Implemented Interfaces:
Localizable
public final class LocalizableMessage extends java.lang.Object implements Localizable
- Author:
- WS Development Team
-
-
Field Summary
-
Fields inherited from interface org.glassfish.tyrus.core.l10n.Localizable
NOT_LOCALIZABLE
-
-
Constructor Summary
Constructors Constructor Description LocalizableMessage(java.lang.String bundlename, java.lang.String key, java.lang.Object... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
getArguments()
Returns the arguments for message formatting.java.lang.String
getKey()
Gets the key in the resource bundle.java.lang.String
getResourceBundleName()
Get the name of the localization messages resource bundle.
-
-
-
Method Detail
-
getKey
public java.lang.String 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 aString
.
-
getArguments
public java.lang.Object[] 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
public java.lang.String getResourceBundleName()
Description copied from interface:Localizable
Get the name of the localization messages resource bundle.- Specified by:
getResourceBundleName
in interfaceLocalizable
- Returns:
- the localization messages resource bundle name.
-
-