org.apache.commons.validator
public class ValidatorResults extends Object implements Serializable
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 | |
|---|---|
| void | add(Field field, String validatorName, boolean result)
Add a the result of a validator action.
|
| void | add(Field field, String validatorName, boolean result, Object value)
Add a the result of a validator action.
|
| void | clear()
Clear all results recorded by this object. |
| Set | getPropertyNames()
Return the set of property names for which at least one message has
been recorded. |
| 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. |
| boolean | isEmpty()
Return true if there are no messages recorded
in this collection, or false otherwise.
|
| void | merge(ValidatorResults results)
Merge another ValidatorResults into mine.
|
Parameters: field The field validated. validatorName The name of the validator. result The result of the validation.
Parameters: field The field validated. validatorName The name of the validator. result The result of the validation. value The value returned by the validator.
Returns: An unmodifiable Set of the property names.
Map of any Objects returned from
validation routines.
Returns: Map of objections returned by validators.
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 just
the field name).
Returns: The result of a specified key.
true if there are no messages recorded
in this collection, or false otherwise.
Returns: Whether these results are empty.
Parameters: results ValidatorResults to merge.