convex.core.data.IValidated Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-core Show documentation
Show all versions of convex-core Show documentation
Convex core libraries and common utilities
The newest version!
package convex.core.data;
import convex.core.exceptions.InvalidDataException;
/**
* Interface for classes that can be validated
*/
public interface IValidated {
/**
* Validates the complete structure of this object.
*
* It is necessary to ensure all child Refs are validated, so the general contract for validate is:
*
*
* - Call super.validate() - which will indirectly call validateCell()
* - Call validate() on any contained cells in this class
*
*
* @throws InvalidDataException If the data Value is invalid in any way
*/
public void validate() throws InvalidDataException;
}