|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.action.ActionMessages
org.apache.struts.action.ActionErrors
ActionFormのvalidate()メソッドが報告するエラーメッセージをカプセル化するクラスです。
バリデーションエラーは関連するActionForm Bean全体でグローバル、
またはある特定のBeanプロパティに固有
(すなわち、対応するフォームの特定入力フィールドに固有) です。
A class that encapsulates the error messages being reported by
the validate() method of an ActionForm.
Validation errors are either global to the entire ActionForm
bean they are associated with, or they are specific to a particular
bean property (and, therefore, a particular input field on the corresponding
form).
個々のエラーはActionMessageオブジェクトで記述されます。
このオブジェクトは、
(適切なメッセージリソースデータベースを検索するための)メッセージキーを含み、
メッセージ内のパラメータの置換に用いられる4つまでのプレースホルダ引数を持ちます。
Each individual error is described by an ActionMessage
object, which contains a message key (to be looked up in an appropriate
message resources database), and up to four placeholder arguments used for
parametric substitution in the resulting message.
実装上の注意 - これらのオブジェクトはシングルスレッドのコンテキスト内でのみ生成・操作されることを前提としています。 従って、内部のコレクションにアクセスする際に同期化する必要はありません。
IMPLEMENTATION NOTE - It is assumed that these objects are created and manipulated only within the context of a single thread. Therefore, no synchronization is required for access to internal collections.
| 入れ子クラスの概要 |
| クラス org.apache.struts.action.ActionMessages から継承した入れ子クラス |
ActionMessages.ActionMessageItem |
| フィールドの概要 | |
static java.lang.String |
GLOBAL_ERROR
推奨されていません。 代わりにActionMessages.GLOBAL_MESSAGEを使ってください。 これはStruts 1.2.より後に削除されます。 @deprecated Use ActionMessages.GLOBAL_MESSAGE instead. This will be
removed after Struts 1.2. |
| クラス org.apache.struts.action.ActionMessages から継承したフィールド |
accessed, GLOBAL_MESSAGE, iCount, messages |
| コンストラクタの概要 | |
ActionErrors()
空の ActionErrorsオブジェクトを生成します。 |
|
ActionErrors(ActionErrors messages)
与えられたメッセージで初期化された ActionErrorsオブジェクトを生成します。 |
|
| メソッドの概要 | |
void |
add(java.lang.String property,
ActionError error)
推奨されていません。 代わりにadd(String, ActionMessage)を使ってください。 これはStruts 1.2.より後に削除されます。 @deprecated Use add(String, ActionMessage) instead. This will be
removed after Struts 1.2. |
| クラス org.apache.struts.action.ActionMessages から継承したメソッド |
add, add, clear, get, get, isAccessed, isEmpty, properties, size, size, toString |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
public static final java.lang.String GLOBAL_ERROR
特定のプロパティに関連するエラーとは対照的な、 グローバルエラーに使用する"プロパティ名"マーカ。
| コンストラクタの詳細 |
public ActionErrors()
空のActionErrorsオブジェクトを生成します。
ActionErrors object.
public ActionErrors(ActionErrors messages)
与えられたメッセージで初期化されたActionErrorsオブジェクトを生成します。
ActionErrors object initialized with the given
messages.
messages - このオブジェクトに最初に追加されるメッセージ。
このパラメータはnullも可能です。
null.| メソッドの詳細 |
public void add(java.lang.String property,
ActionError error)
指定されたプロパティに関するエラーのセットにエラーメッセージを追加します。
property - プロパティ名(またはActionErrors.GLOBAL_ERROR)
error - 追加するエラーメッセージ
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||