public class ValidatorResults
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
hResults
Map of validation results.
|
| Constructor and Description |
|---|
ValidatorResults() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Field field,
java.lang.String validatorName,
boolean result)
Add a the result of a validator action.
|
void |
add(Field field,
java.lang.String validatorName,
boolean result,
java.lang.Object value)
Add a the result of a validator action.
|
void |
clear()
Clear all results recorded by this object.
|
boolean |
empty()
Deprecated.
Use isEmpty() instead.
|
java.util.Iterator |
get()
Deprecated.
Use getPropertyNames() instead.
|
java.util.Set |
getPropertyNames()
Return the set of property names for which at least one message has
been recorded.
|
java.util.Map |
getResultValueMap()
Get a
Map of any Objects returned from
validation routines. |
ValidatorResult |
getValidatorResult(java.lang.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.
|
java.util.Iterator |
properties()
Deprecated.
Use getPropertyNames() instead.
|
public void merge(ValidatorResults results)
public void add(Field field, java.lang.String validatorName, boolean result)
public void add(Field field, java.lang.String validatorName, boolean result, java.lang.Object value)
public void clear()
public boolean empty()
true if there are no messages recorded
in this collection, or false otherwise.public boolean isEmpty()
true if there are no messages recorded
in this collection, or false otherwise.public ValidatorResult getValidatorResult(java.lang.String key)
ValidatorResult associated
with the key passed in. The key the ValidatorResult
is stored under is the Field's getKey method.key - The key generated from Field (this is often just
the field name).public java.util.Iterator get()
public java.util.Iterator properties()
ActionMessages.GLOBAL_MESSAGE will be one of the returned
property names.public java.util.Set getPropertyNames()
public java.util.Map getResultValueMap()
Map of any Objects returned from
validation routines.Copyright (c) 2001-2004 Apache Software Foundation