org.apache.commons.validator
public class ValidatorResults extends Object implements Serializable
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. |
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. |
Set | getPropertyNames()
Return the set of property names for which at least one message has
been recorded. |
Map | getResultValueMap()
Get a Map of any Object s 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. |
Iterator | properties()
Return the set of property names for which at least one message has
been recorded. |
Deprecated: Use isEmpty() instead.
Returntrue
if there are no messages recorded
in this collection, or false
otherwise.Deprecated: Use getPropertyNames() instead.
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.Returns: An unmodifiable Set of the property names.
Map
of any Object
s returned from
validation routines.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).
true
if there are no messages recorded
in this collection, or false
otherwise.Deprecated: Use getPropertyNames() instead.
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 ofActionMessages.GLOBAL_MESSAGE
will be one of the returned
property names.