Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.validator.ValidatorResults
public class ValidatorResults
extends java.lang.Object
implements Serializable
Field Summary | |
protected Map |
|
Method Summary | |
void | |
void | |
void |
|
boolean |
|
Iterator |
|
Set |
|
Map |
|
ValidatorResult |
|
boolean |
|
void |
|
Iterator |
|
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 boolean empty()
Deprecated. Use isEmpty() instead.
Returntrue
if there are no messages recorded in this collection, orfalse
otherwise.
public Iterator get()
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.
public Set getPropertyNames()
Return the set of property names for which at least one message has been recorded.
- Returns:
- An unmodifiable Set of the property names.
public Map getResultValueMap()
Get aMap
of anyObject
s returned from validation routines.
public ValidatorResult getValidatorResult(String key)
Gets theValidatorResult
associated with the key passed in. The key theValidatorResult
is stored under is theField
's getKey method.
- Parameters:
key
- The key generated fromField
(this is often just the field name).
public boolean isEmpty()
Returntrue
if there are no messages recorded in this collection, orfalse
otherwise.
public Iterator properties()
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.