| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.validation.ValidationResult
public class ValidationResult
Represents a result of a validation execution. Contains a set of
 ValidationFailuresthat occured in a given context. All
 failures are kept in the same order they were added.
| Constructor Summary | |
|---|---|
| ValidationResult() | |
| Method Summary | |
|---|---|
|  void | addFailure(ValidationFailure failure)Add a failure to the validation result. | 
|  List<ValidationFailure> | getFailures()Returns all failures added to this result, or empty list is result has no failures. | 
|  List<ValidationFailure> | getFailures(Object source)Returns all failures related to the sourceobject, or an empty list
 if there are no such failures. | 
|  boolean | hasFailures()Returns true if at least one failure has been added to this result. | 
|  boolean | hasFailures(Object source) | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public ValidationResult()
| Method Detail | 
|---|
public void addFailure(ValidationFailure failure)
failure - failure to be added. It may not be null.ValidationFailurepublic List<ValidationFailure> getFailures()
public List<ValidationFailure> getFailures(Object source)
source object, or an empty list
 if there are no such failures.
source - it may be null.ValidationFailure.getSource()public boolean hasFailures()
public boolean hasFailures(Object source)
source - it may be null.
source. False
         otherwise.public String toString()
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||