- java.lang.Object
-
- com.sun.istack.localization.NullLocalizable
-
- All Implemented Interfaces:
Localizable
public final class NullLocalizable extends Object implements Localizable
Localizablethat wraps a non-localizable string.- Author:
- WS Development Team
-
-
Field Summary
-
Fields inherited from interface com.sun.istack.localization.Localizable
NOT_LOCALIZABLE
-
-
Constructor Summary
Constructors Constructor Description NullLocalizable(String msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]getArguments()Returns the arguments for message formatting.StringgetKey()Gets the key in the resource bundle.ResourceBundlegetResourceBundle(Locale locale)StringgetResourceBundleName()
-
-
-
Constructor Detail
-
NullLocalizable
public NullLocalizable(String msg)
-
-
Method Detail
-
getKey
public String getKey()
Description copied from interface:LocalizableGets the key in the resource bundle.- Specified by:
getKeyin interfaceLocalizable- Returns:
- if this method returns
Localizable.NOT_LOCALIZABLE, that means the message is not localizable, and the first item ofLocalizable.getArguments()array holds a String.
-
getArguments
public Object[] getArguments()
Description copied from interface:LocalizableReturns the arguments for message formatting.- Specified by:
getArgumentsin interfaceLocalizable- Returns:
- can be an array of length 0 but never be null.
-
getResourceBundleName
public String getResourceBundleName()
- Specified by:
getResourceBundleNamein interfaceLocalizable
-
getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)
- Specified by:
getResourceBundlein interfaceLocalizable
-
-