org.apache.commons.validator

Class ValidatorResult.ResultStatus

Enclosing Class:
ValidatorResult
Implemented Interfaces:
java.io.Serializable

protected class ValidatorResult.ResultStatus
extends java.lang.Object
implements java.io.Serializable

Contains the status of the validation.

See Also:
Serialized Form

Field Summary

private java.lang.Object
result
private boolean
valid

Constructor Summary

ResultStatus(boolean valid, java.lang.Object result)

Method Summary

java.lang.Object
getResult()
Gets the result returned by a validation method.
boolean
getValid()
Deprecated. Use isValid() instead.
boolean
isValid()
Tests whether or not the validation passed.
void
setResult(java.lang.Object result)
Sets the result returned by a validation method.
void
setValid(boolean valid)
Sets whether or not the validation passed.

Field Details

result

private java.lang.Object result


valid

private boolean valid

Constructor Details

ResultStatus

public ResultStatus(boolean valid,
                    java.lang.Object result)

Method Details

getResult

public java.lang.Object getResult()
Gets the result returned by a validation method. This can be used to retrieve to the correctly typed value of a date validation for example.


getValid

public boolean getValid()

Deprecated. Use isValid() instead.

Gets whether or not the validation passed.


isValid

public boolean isValid()
Tests whether or not the validation passed.


setResult

public void setResult(java.lang.Object result)
Sets the result returned by a validation method. This can be used to retrieve to the correctly typed value of a date validation for example.


setValid

public void setValid(boolean valid)
Sets whether or not the validation passed.


Copyright (c) 2001-2004 Apache Software Foundation