org.apache.commons.validator
Class ValidatorResult
java.lang.Object
org.apache.commons.validator.ValidatorResult
- Serializable
public class ValidatorResult
extends java.lang.Object
implements Serializable
This contains the results of a set of validation rules processed
on a JavaBean.
ValidatorResult(Field field) - Constructs a
ValidatorResult with the associated field being
validated.
|
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)
|
Map | getActionMap()
|
Field | getField() - Returns the Field that was validated.
|
boolean | isValid(String validatorName)
|
field
protected Field field
Field
being validated.
TODO This variable is not used. Need to investigate removing it.
hAction
protected Map hAction
Map of results. The key is the name of the ValidatorAction
and the value is whether or not this field passed or not.
ValidatorResult
public ValidatorResult(Field field)
Constructs a ValidatorResult
with the associated field being
validated.
add
public void add(String validatorName,
boolean result)
Add the result of a validator action.
add
public void add(String validatorName,
boolean result,
Object value)
Add the result of a validator action.
containsAction
public boolean containsAction(String validatorName)
getActionMap
public Map getActionMap()
getField
public Field getField()
Returns the Field that was validated.
isValid
public boolean isValid(String validatorName)
Copyright (c) 2001-2004 Apache Software Foundation