org.apache.commons.validator
public class ValidatorResult extends Object implements Serializable
Version: $Revision: 478334 $ $Date: 2006-11-22 21:31:54 +0000 (Wed, 22 Nov 2006) $
Nested Class Summary | |
---|---|
protected class | ValidatorResult.ResultStatus
Contains the status of the validation. |
Field Summary | |
---|---|
protected Field | fieldField being validated.
|
protected Map | hAction
Map of results. |
Constructor Summary | |
---|---|
ValidatorResult(Field field)
Constructs a ValidatorResult with the associated field being
validated. |
Method Summary | |
---|---|
void | add(String validatorName, boolean result)
Add the result of a validator action. |
void | add(String validatorName, boolean result, Object value)
Add the result of a validator action. |
boolean | containsAction(String validatorName)
Indicate whether a specified validator is in the Result. |
Map | getActionMap()
Return a Map of the validator actions in this Result. |
Iterator | getActions()
Return an Iterator of the action names contained in this Result. |
Field | getField()
Returns the Field that was validated. |
Object | getResult(String validatorName)
Return the result of a validation. |
boolean | isValid(String validatorName)
Indicate whether a specified validation passed. |
Field
being validated.
TODO This variable is not used. Need to investigate removing it.ValidatorAction
and the value is whether or not this field passed or not.ValidatorResult
with the associated field being
validated.Parameters: field Field that was validated.
Parameters: validatorName Name of the validator. result Whether the validation passed or failed.
Parameters: validatorName Name of the validator. result Whether the validation passed or failed. value Value returned by the validator.
Parameters: validatorName Name of the validator.
Returns: true if the validator is in the result.
Deprecated: Use getActions() to return the set of actions the isValid(name) and getResult(name) methods to determine the contents of ResultStatus.
Return a Map of the validator actions in this Result.Returns: Map of validator actions.
Returns: The set of action names.
Returns: The Field associated with this result.
Parameters: validatorName Name of the validator.
Returns: The validation result.
Parameters: validatorName Name of the validator.
Returns: true if the validation passed.