it.amattioli.dominate.validation
Class ValidationResult

Show UML class diagram
java.lang.Object
  extended by it.amattioli.dominate.validation.ValidationResult

public class ValidationResult
extends Object

The result of a validation performed by a Validator

Author:
andrea

Nested Class Summary
static class ValidationResult.ResultType
           
 
Constructor Summary
ValidationResult(ValidationResult.ResultType type, String message)
           
 
Method Summary
 String getMessage()
          The message associated with this result.
 ValidationResult.ResultType getType()
          The type of this result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationResult

public ValidationResult(ValidationResult.ResultType type,
                        String message)
Method Detail

getType

public ValidationResult.ResultType getType()
The type of this result. Could be VALID or INVALID

Returns:

getMessage

public String getMessage()
The message associated with this result. Tipically makes sense only for INVALID results

Returns:


Copyright © 2011. All Rights Reserved.