- Dr. Alistair Ward
- A class to define the simple interface, to which data which can self-validation, should conform.
The interface to which data which can self-validate should conform.
Return either null, or the reasons why the data is invalid.
Returns the first error only (so only call on failure of
isValid), since subsequent tests may be based on invalid data.