org.apache.commons.validator
protected class ValidatorResult.ResultStatus extends Object implements Serializable
| Field Summary | |
|---|---|
| Object | result |
| boolean | valid |
| Constructor Summary | |
|---|---|
| ResultStatus(boolean valid, Object result)
Construct a Result status. | |
| Method Summary | |
|---|---|
| Object | getResult()
Gets the result returned by a validation method.
|
| boolean | isValid()
Tests whether or not the validation passed. |
| void | setResult(Object result)
Sets the result returned by a validation method.
|
| void | setValid(boolean valid)
Sets whether or not the validation passed. |
Parameters: valid Whether the validator passed or failed. result Value returned by the validator.
Returns: The value returned by the validation.
Returns: true if the result was good.
Parameters: result The value returned by the validation.
Parameters: valid Whether the validation passed.