org.glassfish.jersey.internal.l10n
Class LocalizableMessage

java.lang.Object
  extended by org.glassfish.jersey.internal.l10n.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.jersey.internal.l10n.Localizable
NOT_LOCALIZABLE
 
Constructor Summary
LocalizableMessage(String bundlename, String key, Object... args)
           
 
Method Summary
 Object[] getArguments()
          Returns the arguments for message formatting.
 String getKey()
          Gets the key in the resource bundle.
 String getResourceBundleName()
          Get the name of the localization messages resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizableMessage

public LocalizableMessage(String bundlename,
                          String key,
                          Object... args)
Method Detail

getKey

public String getKey()
Description copied from interface: Localizable
Gets the key in the resource bundle.

Specified by:
getKey in interface Localizable
Returns:
if this method returns Localizable.NOT_LOCALIZABLE, that means the message is not localizable, and the first item of Localizable.getArguments() array holds a String.

getArguments

public Object[] getArguments()
Description copied from interface: Localizable
Returns the arguments for message formatting.

Specified by:
getArguments in interface Localizable
Returns:
can be an array of length 0 but never be null.

getResourceBundleName

public String getResourceBundleName()
Description copied from interface: Localizable
Get the name of the localization messages resource bundle.

Specified by:
getResourceBundleName in interface Localizable
Returns:
the localization messages resource bundle name.


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.