| java.lang.Object org.apache.commons.validator.ValidatorResults
ValidatorResults | public class ValidatorResults implements Serializable(Code) | | This contains the results of a set of validation rules processed
on a JavaBean.
version: $Revision: 478334 $ $Date: 2006-11-22 21:31:54 +0000 (Wed, 22 Nov 2006) $ |
Field Summary | |
protected Map | hResults Map of validation results. |
Method Summary | |
public void | add(Field field, String validatorName, boolean result) Add a the result of a validator action. | public void | add(Field field, String validatorName, boolean result, Object value) Add a the result of a validator action. | public void | clear() Clear all results recorded by this object. | public Set | getPropertyNames() Return the set of property names for which at least one message has
been recorded. | public Map | getResultValueMap() Get a Map of any Object s returned from
validation routines. | public ValidatorResult | getValidatorResult(String key) Gets the ValidatorResult associated
with the key passed in. | public boolean | isEmpty() Return true if there are no messages recorded
in this collection, or false otherwise. | public void | merge(ValidatorResults results) Merge another ValidatorResults into mine. |
hResults | protected Map hResults(Code) | | Map of validation results.
|
add | public void add(Field field, String validatorName, boolean result)(Code) | | Add a the result of a validator action.
Parameters: field - The field validated. Parameters: validatorName - The name of the validator. Parameters: result - The result of the validation. |
add | public void add(Field field, String validatorName, boolean result, Object value)(Code) | | Add a the result of a validator action.
Parameters: field - The field validated. Parameters: validatorName - The name of the validator. Parameters: result - The result of the validation. Parameters: value - The value returned by the validator. |
clear | public void clear()(Code) | | Clear all results recorded by this object.
|
getPropertyNames | public Set getPropertyNames()(Code) | | Return the set of property names for which at least one message has
been recorded.
An unmodifiable Set of the property names. |
getResultValueMap | public Map getResultValueMap()(Code) | | Get a Map of any Object s returned from
validation routines.
Map of objections returned by validators. |
getValidatorResult | public ValidatorResult getValidatorResult(String key)(Code) | | Gets the ValidatorResult associated
with the key passed in. The key the ValidatorResult
is stored under is the Field 's getKey method.
Parameters: key - The key generated from Field (this is often justthe field name). The result of a specified key. |
isEmpty | public boolean isEmpty()(Code) | | Return true if there are no messages recorded
in this collection, or false otherwise.
Whether these results are empty. |
merge | public void merge(ValidatorResults results)(Code) | | Merge another ValidatorResults into mine.
Parameters: results - ValidatorResults to merge. |
|
|