|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.util.message.MessageFormatter
public abstract class MessageFormatter
メッセージコードと引数からメッセージを組み立てるクラスです。
| フィールドの概要 | |
|---|---|
protected static int |
CODE_NUMBER_LENGTH
メッセージコードの数値部の長さ |
protected static boolean |
initialized
初期化済みを示すフラグ |
protected static String |
MESSAGES
メッセージコードに対応するリソースバンドル名の接尾辞 |
| コンストラクタの概要 | |
|---|---|
MessageFormatter()
|
|
| メソッドの概要 | |
|---|---|
static String |
getFormattedMessage(String messageCode,
String simpleMessage)
メッセージコードつきのメッセージを返します。 |
static String |
getMessage(String messageCode,
Object... args)
メッセージを返します。 |
protected static String |
getNoPatternMessage(Object... args)
パターンを使用しないで引数を並べたメッセージを返します。 |
protected static String |
getPattern(String messageCode)
メッセージコードに対応するパターン文字列を返します。 |
protected static ResourceBundle |
getResourceBundle(String systemName)
リソースバンドルを返します。 |
static String |
getSimpleMessage(String messageCode,
Object... args)
引数を展開してメッセージコードなしの単純なメッセージを返します。 |
protected static String |
getSystemName(String messageCode)
システム名を返します。 |
protected static void |
initialize()
初期化します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected static final int CODE_NUMBER_LENGTH
protected static final String MESSAGES
protected static volatile boolean initialized
| コンストラクタの詳細 |
|---|
public MessageFormatter()
| メソッドの詳細 |
|---|
public static String getMessage(String messageCode,
Object... args)
messageCode - メッセージコードargs - 引数
public static String getFormattedMessage(String messageCode,
String simpleMessage)
messageCode - メッセージコードsimpleMessage - 引数が展開された単純なメッセージ
public static String getSimpleMessage(String messageCode,
Object... args)
messageCode - メッセージコードargs - 引数
protected static String getPattern(String messageCode)
messageCode - メッセージコード
protected static String getSystemName(String messageCode)
messageCode - メッセージコード
protected static ResourceBundle getResourceBundle(String systemName)
systemName - システム名
protected static String getNoPatternMessage(Object... args)
args - 引数
protected static void initialize()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||