| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.commons.validator.ValidatorResultspublic class ValidatorResultsextends java.lang.Objectimplements SerializableField 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.
Returntrueif there are no messages recorded in this collection, orfalseotherwise.
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 aMapof anyObjects returned from validation routines.
public ValidatorResult getValidatorResult(String key)
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).
public boolean isEmpty()
Returntrueif there are no messages recorded in this collection, orfalseotherwise.
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_MESSAGEwill be one of the returned property names.