org.caleigo.core
Class ValidationResult
java.lang.Object
org.caleigo.core.ValidationResult
- public class ValidationResult
- extends java.lang.Object
- Version:
- 1.00
- Author:
- Dennis Zikovic
Constructor Summary |
protected |
ValidationResult()
Creates a new instance of ValidationResult. |
|
ValidationResult(java.lang.Object referenceObject,
java.lang.String errorMessage)
Creates a new instance of ValidationResult that represents a failed
validation with the provided error message. |
Method Summary |
java.lang.String |
getDisplayMessage()
Access method that returns an end-user displayabla validation message
for validtions that failed. |
java.lang.Object |
getReferenceObject()
Access method that returns the refernce object. |
boolean |
isValid()
Access method that returns true when the data was succesfully validated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALID_RESULT
public static final ValidationResult VALID_RESULT
ValidationResult
protected ValidationResult()
- Creates a new instance of ValidationResult.
ValidationResult
public ValidationResult(java.lang.Object referenceObject,
java.lang.String errorMessage)
- Creates a new instance of ValidationResult that represents a failed
validation with the provided error message.
isValid
public boolean isValid()
- Access method that returns true when the data was succesfully validated.
getDisplayMessage
public java.lang.String getDisplayMessage()
- Access method that returns an end-user displayabla validation message
for validtions that failed. Returns null is the validation was succesfull.
getReferenceObject
public java.lang.Object getReferenceObject()
- Access method that returns the refernce object. The reference object is
typically an field or entity descriptor that can be used to map the
failed validation to for example an on-screen component.
Copyright © 2005 Caleigo. All Rights Reserved.