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

public Interface Localizable

Known Direct Implementers
org.glassfish.tyrus.core.l10n.LocalizableMessage

Localizable message.
Author
WS Development Team

Field Summary

Modifier and TypeField and Description
public static final String
NOT_LOCALIZABLE

Special constant that represents a message that is not localizable.

Method Summary

Modifier and TypeMethod and Description
public Object[]

Returns:

can be an array of length 0 but never be null.
getArguments
()

Returns the arguments for message formatting.

public String

Returns:

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

Gets the key in the resource bundle.

public String

Returns:

the localization messages resource bundle name.
getResourceBundleName
()

Get the name of the localization messages resource bundle.

Field Detail

NOT_LOCALIZABLEback to summary
public static final String NOT_LOCALIZABLE

Special constant that represents a message that is not localizable.

Use of "new" is to create an unique instance.

Method Detail

getArgumentsback to summary
public Object[] getArguments()

Returns the arguments for message formatting.

Returns:Object[]

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

getKeyback to summary
public String 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.

getResourceBundleNameback to summary
public String getResourceBundleName()

Get the name of the localization messages resource bundle.

Returns:String

the localization messages resource bundle name.