protected class ValidatorResult.ResultStatus extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private Object |
result |
private boolean |
valid |
Constructor and Description |
---|
ValidatorResult.ResultStatus(boolean valid,
Object result)
Construct a Result status.
|
Modifier and Type | Method and Description |
---|---|
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.
|
private boolean valid
private Object result
public ValidatorResult.ResultStatus(boolean valid, Object result)
valid
- Whether the validator passed or failed.result
- Value returned by the validator.public boolean isValid()
public void setValid(boolean valid)
valid
- Whether the validation passed.public Object getResult()
public void setResult(Object result)
result
- The value returned by the validation.Copyright (c) 2001-2004 Apache Software Foundation