org.apache.commons.validator
クラス ValidatorResults

java.lang.Object
  拡張org.apache.commons.validator.ValidatorResults
すべての実装インタフェース:
Serializable

public class ValidatorResults
extends Object
implements Serializable

このクラスは JavaBean に対して行われた妥当性チェック(のセット)の処理結果を保持します。 validation rules processed on JavaBean.

バージョン:
$Revision: 1.1.1.1 $ $Date: 2004/02/13 10:02:01 $
作成者:
David Winterfeldt, James Turner
関連項目:
直列化された形式
翻訳者:
日置 聡

フィールドの概要
protected  Map hResults
          Map of validation results .
 
コンストラクタの概要
ValidatorResults()
           
 
メソッドの概要
 void add(Field field, String validatorName, boolean bResult)
          Add a the result of a validator action.
 void add(Field field, String validatorName, boolean bResult, Object value)
          Add a the result of a validator action.
 void clear()
          Clear all results recorded by this object.
 boolean empty()
          Return true if there are no messages recorded in this collection, or false otherwise.
 Iterator get()
          Return the set of all recorded messages, without distinction by which property the messages are associated with.
 Map getResultValueMap()
          Get a Map of any Objects returned from validation routines.
 ValidatorResult getValidatorResult(String key)
          Gets the ValidatorResult associated with the key passed in.
 void merge(ValidatorResults res)
          Merge another ValidatorResults into mine
 Iterator properties()
          Return the set of property names for which at least one message has been recorded.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

hResults

protected Map hResults
Map of validation results .

コンストラクタの詳細

ValidatorResults

public ValidatorResults()
メソッドの詳細

merge

public void merge(ValidatorResults res)
Merge another ValidatorResults into mine


add

public void add(Field field,
                String validatorName,
                boolean bResult)
Add a the result of a validator action.


add

public void add(Field field,
                String validatorName,
                boolean bResult,
                Object value)
Add a the result of a validator action.


clear

public void clear()
Clear all results recorded by this object.


empty

public boolean empty()
Return true if there are no messages recorded in this collection, or false otherwise.


getValidatorResult

public ValidatorResult getValidatorResult(String key)
Gets the ValidatorResult associated with the key passed in. The key the ValidatorResult is stored under is the Field's getKey method.

パラメータ:
key - The key generated from Field.

get

public Iterator get()
Return the set of all recorded messages, without distinction by which property the messages are associated with. If there are no messages recorded, an empty enumeration is returned.


properties

public Iterator properties()
Return the set of property names for which at least one message has been recorded. If there are no messages, an empty Iterator is returned. If you have recorded global messages, the String value of ActionMessages.GLOBAL_MESSAGE will be one of the returned property names.


getResultValueMap

public Map getResultValueMap()
Get a Map of any Objects returned from validation routines.



このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation