com.sun.xml.ws.util.localization
Class LocalizableImpl

java.lang.Object
  extended by com.sun.xml.ws.util.localization.LocalizableImpl
All Implemented Interfaces:
Localizable

public final class LocalizableImpl
extends Object
implements Localizable

Straight-forward Localizable implementation.


Field Summary
 
Fields inherited from interface com.sun.xml.ws.util.localization.Localizable
NOT_LOCALIZABLE
 
Constructor Summary
LocalizableImpl(String key, Object[] arguments, String resourceBundleName)
           
 
Method Summary
 Object[] getArguments()
          Returns the arguments for message formatting.
 String getKey()
          Gets the key in the resource bundle.
 String getResourceBundleName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizableImpl

public LocalizableImpl(String key,
                       Object[] arguments,
                       String resourceBundleName)
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()
Specified by:
getResourceBundleName in interface Localizable