public class ValidatorResult
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
protected class |
ValidatorResult.ResultStatus
Contains the status of the validation.
|
| Modifier and Type | Field and Description |
|---|---|
protected Field |
field
Field being validated. |
protected java.util.Map |
hAction
Map of results.
|
| Constructor and Description |
|---|
ValidatorResult(Field field)
Constructs a
ValidatorResult with the associated field being
validated. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String validatorName,
boolean result)
Add the result of a validator action.
|
void |
add(java.lang.String validatorName,
boolean result,
java.lang.Object value)
Add the result of a validator action.
|
boolean |
containsAction(java.lang.String validatorName) |
java.util.Map |
getActionMap() |
Field |
getField()
Returns the Field that was validated.
|
boolean |
isValid(java.lang.String validatorName) |
protected java.util.Map hAction
ValidatorAction
and the value is whether or not this field passed or not.protected Field field
Field being validated.
TODO This variable is not used. Need to investigate removing it.public ValidatorResult(Field field)
ValidatorResult with the associated field being
validated.public void add(java.lang.String validatorName,
boolean result)
public void add(java.lang.String validatorName,
boolean result,
java.lang.Object value)
public boolean containsAction(java.lang.String validatorName)
public boolean isValid(java.lang.String validatorName)
public java.util.Map getActionMap()
public Field getField()
Copyright (c) 2001-2004 Apache Software Foundation