Top Fields Constructors Methods
org.glassfish.tyrus.core.l10n

public final Class LocalizableMessage

extends Object
implements Localizable
Class Inheritance
All Implemented Interfaces
org.glassfish.tyrus.core.l10n.Localizable

Author
WS Development Team

Field Summary

Modifier and TypeField and Description
private final Object[]
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
LocalizableMessage(String bundlename, String key, Object... args)

Method Summary

Modifier and TypeMethod and Description
public Object[]
getArguments()

Implements org.glassfish.tyrus.core.l10n.Localizable.getArguments.

Returns the arguments for message formatting.

public String
getKey()

Implements org.glassfish.tyrus.core.l10n.Localizable.getKey.

Gets the key in the resource bundle.

public String
getResourceBundleName()

Implements org.glassfish.tyrus.core.l10n.Localizable.getResourceBundleName.

Get the name of the localization messages resource bundle.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_argsback to summary
private final Object[] _args
_bundlenameback to summary
private final String _bundlename
_keyback to summary
private final String _key

Constructor Detail

LocalizableMessageback to summary
public LocalizableMessage(String bundlename, String key, Object... args)

Method Detail

getArgumentsback to summary
public Object[] getArguments()

Implements org.glassfish.tyrus.core.l10n.Localizable.getArguments.

Doc from org.glassfish.tyrus.core.l10n.Localizable.getArguments.

Returns the arguments for message formatting.

Returns:Object[]

can be an array of length 0 but never be null.

Annotations
@Override
getKeyback to summary
public String getKey()

Implements org.glassfish.tyrus.core.l10n.Localizable.getKey.

Doc from org.glassfish.tyrus.core.l10n.Localizable.getKey.

Gets the key in the resource bundle.

Returns:String

if this method returns NOT_LOCALIZABLE, that means the message is not localizable, and the first item of getArguments() array holds a String.

Annotations
@Override
getResourceBundleNameback to summary
public String getResourceBundleName()

Implements org.glassfish.tyrus.core.l10n.Localizable.getResourceBundleName.

Doc from org.glassfish.tyrus.core.l10n.Localizable.getResourceBundleName.

Get the name of the localization messages resource bundle.

Returns:String

the localization messages resource bundle name.

Annotations
@Override