Commons Resources (Unofficial)
|
- All Implemented Interfaces:
- java.io.Serializable
- public class ValidatorResults
- extends java.lang.Object
- implements java.io.Serializable
This contains the results of a set of
validation rules processed on JavaBean.
Field Summary |
protected java.util.Map |
hResults
Map of validation results . |
Method Summary |
void |
add
(
Field
field,
java.lang.String validatorName,
boolean bResult)
Add a the result of a validator action. |
void |
add
(
Field
field,
java.lang.String validatorName,
boolean bResult,
java.lang.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. |
java.util.Iterator |
get
()
Return the set of all recorded messages, without distinction
by which property the messages are associated with. |
java.util.Map |
getResultValueMap
()
Get a Map of any Object s
returned from validation routines. |
ValidatorResult
|
getValidatorResult
(java.lang.String key)
Gets the ValidatorResult associated
with the key passed in. |
void |
merge
(
ValidatorResults
res)
Merge another ValidatorResults into mine |
java.util.Iterator |
properties
()
Return the set of property names for which at least one message has
been recorded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
- Map of validation results .
- Merge another ValidatorResults into mine
public void ( field,
java.lang.String validatorName,
boolean bResult)
- Add a the result of a validator action.
public void ( field,
java.lang.String validatorName,
boolean bResult,
java.lang.Object value)
- Add a the result of a validator action.
- Clear all results recorded by this object.
- Return
true if there are no messages recorded
in this collection, or false otherwise.
public (java.lang.String key)
- Gets the
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 .
public java.util.Iterator ()
- 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 java.util.Iterator ()
- 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 of
ActionMessages.GLOBAL_MESSAGE will be one of the returned
property names.
- Get a
Map of any Object s
returned from validation routines.
Copyright (c) 2001-2002 - Apache Software Foundation
|