クラス MsgUtil
- java.lang.Object
-
- org.opengion.fukurou.system.MsgUtil
-
-
メソッドの詳細
-
getMsg
public static String getMsg(String id, Object... args)
"org.opengion.fukurou.message" の、Locale.JAPANESE リソースから取得するメッセージを文字列で返します。 id と引数を受け取り、ResourceBundle と、MessageFormat.format で加工した 文字列を返します。 baseName は、F_BS_NM で、Locale に、Locale.JAPANESE を指定したメッセージを作成します。- パラメータ:
id
- リソースのキーとなるID。args
- リソースを、MessageFormat.format で加工する場合の引数。- 戻り値:
- MessageFormat.formatで加工された文字列
- 関連項目:
F_BS_NM
-
getMsg
public static String getMsg(String baseName, Locale locale, String id, Object... args)
リソースから取得するメッセージを文字列で返します。 id と引数を受け取り、ResourceBundle と、MessageFormat.format で加工した 文字列を返します。- パラメータ:
baseName
- バンドルのベース名locale
- リソース・バンドルが必要なロケールid
- リソースのキーとなるIDargs
- リソースを、MessageFormat.format で加工する場合の引数- 戻り値:
- MessageFormat.formatで加工された文字列
-
-