Implement those methods to define your own behaviour.
During validation process, in case of an error the corresponding
method gets called, and is provided the object where the error occurred,
and type of the error. Objects are passed by reference so that they
can be changed (fixed / cleaned up / etc.)
If onError() returns true, that means to continue validation process
for this particular entity. Otherwise, all other validation checks are
skipped and next entity is processed.
Implement those methods to define your own behaviour.
During validation process, in case of an error the corresponding method gets called, and is provided the object where the error occurred, and type of the error. Objects are passed by reference so that they can be changed (fixed / cleaned up / etc.)
If onError() returns true, that means to continue validation process for this particular entity. Otherwise, all other validation checks are skipped and next entity is processed.