| Package | Description | 
|---|---|
| nablarch.core.message | 
 アプリケーションで使用するメッセージの管理を行う機能を提供する。 
 | 
| nablarch.core.validation | 
 入力値をチェックするバリデーション機能を提供する。 
 | 
| Modifier and Type | Method and Description | 
|---|---|
StringResource | 
StringResourceHolder.get(java.lang.String messageId)
文字列リソースを取得する。 
 | 
static StringResource | 
MessageUtil.getStringResource(java.lang.String messageId)
メッセージIDに対応する 
StringResourceを取得する。
 メッセージIDがnullである場合は、nullを返す。
 
 テンプレート文字列が以下であるときの例を示す。「errors.maxLength={0}は{1}文字以下で入力してください。」 例:  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
StringResourceHolder.setStringResourceCache(StaticDataCache<StringResource> stringResourceCache)
文字列リソースのキャッシュを設定する。 
 | 
| Constructor and Description | 
|---|
Message(MessageLevel level,
       StringResource stringResource)
メッセージの通知レベル、文字列リソースを指定して、インスタンスを生成する。 
 | 
Message(MessageLevel level,
       StringResource stringResource,
       java.lang.Object[] option)
メッセージの通知レベル、文字列リソース、オプションパラメータを指定して、インスタンスを生成する。 
 | 
| Modifier and Type | Method and Description | 
|---|---|
StringResource | 
ValidationContext.getMessage(java.lang.String messageId)
メッセージIDに対応するメッセージを取得する。 
 | 
| Constructor and Description | 
|---|
ValidationResultMessage(java.lang.String propertyName,
                       StringResource message,
                       java.lang.Object[] parameters)
ValidationResultMessageオブジェクトを構築する。
 
 メッセージの通知レベルはMessageLevel.ERRORが指定される。 |