Package org.apache.commons.validator
Class ValidatorResults
java.lang.Object
org.apache.commons.validator.ValidatorResults
- All Implemented Interfaces:
- Serializable
This contains the results of a set of validation rules processed
 on a JavaBean.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Map<String, ValidatorResult> Map of validation results.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd the result of a validator action.voidAdd the result of a validator action.voidclear()Clear all results recorded by this object.Gets the set of property names for which at least one message has been recorded.Gets aMapof anyObjects returned from validation routines.getValidatorResult(String key) Gets theValidatorResultassociated with the key passed in.booleanisEmpty()Getstrueif there are no messages recorded in this collection, orfalseotherwise.voidmerge(ValidatorResults results) Merge another ValidatorResults into mine.
- 
Field Details- 
hResultsMap of validation results.
 
- 
- 
Constructor Details- 
ValidatorResultspublic ValidatorResults()Constructs a new instance.
 
- 
- 
Method Details- 
addAdd the result of a validator action.- Parameters:
- field- The field validated.
- validatorName- The name of the validator.
- result- The result of the validation.
 
- 
addAdd the result of a validator action.- Parameters:
- field- The field validated.
- validatorName- The name of the validator.
- result- The result of the validation.
- value- The value returned by the validator.
 
- 
clearClear all results recorded by this object.
- 
getPropertyNamesGets the set of property names for which at least one message has been recorded.- Returns:
- An unmodifiable Set of the property names.
 
- 
getResultValueMapGets aMapof anyObjects returned from validation routines.- Returns:
- Map of objections returned by validators.
 
- 
getValidatorResultGets theValidatorResultassociated with the key passed in. The key theValidatorResultis stored under is theField's getKey method.- Parameters:
- key- The key generated from- Field(this is often just the field name).
- Returns:
- The result of a specified key.
 
- 
isEmptyGetstrueif there are no messages recorded in this collection, orfalseotherwise.- Returns:
- Whether these results are empty.
 
- 
mergeMerge another ValidatorResults into mine.- Parameters:
- results- ValidatorResults to merge.
 
 
-