org.apache.commons.validator
Class ValidatorResult.ResultStatus

java.lang.Object
  extended byorg.apache.commons.validator.ValidatorResult.ResultStatus
All Implemented Interfaces:
Serializable
Enclosing class:
ValidatorResult

protected class ValidatorResult.ResultStatus
extends Object
implements Serializable

Contains the status of the validation.

See Also:
Serialized Form

Constructor Summary
ValidatorResult.ResultStatus(boolean valid, Object result)
           
 
Method Summary
 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(Object result)
          Sets the result returned by a validation method.
 void setValid(boolean valid)
          Sets whether or not the validation passed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorResult.ResultStatus

public ValidatorResult.ResultStatus(boolean valid,
                                    Object result)
Method Detail

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.


setValid

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


getResult

public 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.


setResult

public void setResult(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.



Copyright © 2002-2004 The Apache Software Foundation. All Rights Reserved.