|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.bellows.validate.ValidationResult
Data holder to encapsulate validation results.
Constructor Summary | |
ValidationResult()
Creates a new default instance of ValidationResult. |
|
ValidationResult(boolean isValid,
java.lang.String[] messages,
Datum[] errorNodes)
Creates a new instance of ValidationResult with the given parameters. |
Method Summary | |
Datum[] |
getErrorNodes()
Retrieves the array of Datum nodes in the data tree that caused validation errors. |
java.lang.String[] |
getMessages()
Retrieves the array of warning and error messages generated by the validation process. |
boolean |
isValid()
Retrieves the overall success of the validation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValidationResult()
public ValidationResult(boolean isValid, java.lang.String[] messages, Datum[] errorNodes)
isValid
- true if the validation was successfulmessages
- array of text messages from the validationerrorNodes
- array of Datum nodes with validation errorsMethod Detail |
public boolean isValid()
public java.lang.String[] getMessages()
public Datum[] getErrorNodes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |