jp.cssj.sakae.sac.i18n
インタフェース Localizable

既知のサブインタフェースの一覧:
ExtendedLocalizable
既知の実装クラスの一覧:
LocalizableSupport, Parser

public interface Localizable

This interface must be implemented by the classes which must provide a way to override the default locale.

バージョン:
$Id: Localizable.java,v 1.2 2007-05-06 04:24:06 miyabe Exp $
作成者:
Stephane Hillion

メソッドの概要
 String formatMessage(String key, Object[] args)
          Creates and returns a localized message, given the key of the message in the resource bundle and the message parameters.
 Locale getLocale()
          Returns the current locale or null if the locale currently used is the default one.
 void setLocale(Locale l)
          Provides a way to the user to specify a locale which override the default one.
 

メソッドの詳細

setLocale

public void setLocale(Locale l)
Provides a way to the user to specify a locale which override the default one. If null is passed to this method, the used locale becomes the global one.

パラメータ:
l - The locale to set.

getLocale

public Locale getLocale()
Returns the current locale or null if the locale currently used is the default one.


formatMessage

public String formatMessage(String key,
                            Object[] args)
                     throws MissingResourceException
Creates and returns a localized message, given the key of the message in the resource bundle and the message parameters. The messages in the resource bundle must have the syntax described in the java.text.MessageFormat class documentation.

パラメータ:
key - The key used to retreive the message from the resource bundle.
args - The objects that compose the message.
例外:
MissingResourceException - if the key is not in the bundle.


(c)2009 GNN & Co.,Ltd.