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.
- Version:
- $Revision: 1652498 $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, ValidatorResult> Map of validation results.private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a the result of a validator action.voidAdd a the result of a validator action.voidclear()Clear all results recorded by this object.Return the set of property names for which at least one message has been recorded.Get aMapof anyObjects returned from validation routines.getValidatorResult(String key) Gets theValidatorResultassociated with the key passed in.booleanisEmpty()Returntrueif there are no messages recorded in this collection, orfalseotherwise.voidmerge(ValidatorResults results) Merge another ValidatorResults into mine.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
hResults
Map of validation results.
-
-
Constructor Details
-
ValidatorResults
public ValidatorResults()
-
-
Method Details
-
merge
Merge another ValidatorResults into mine.- Parameters:
results- ValidatorResults to merge.
-
add
-
add
-
clear
public void clear()Clear all results recorded by this object. -
isEmpty
public boolean isEmpty()Returntrueif there are no messages recorded in this collection, orfalseotherwise.- Returns:
- Whether these results are empty.
-
getValidatorResult
Gets theValidatorResultassociated with the key passed in. The key theValidatorResultis stored under is theField's getKey method.- Parameters:
key- The key generated fromField(this is often just the field name).- Returns:
- The result of a specified key.
-
getPropertyNames
-
getResultValueMap
-