All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.continual.services.model.core.ModelSchema Maven / Gradle / Ivy

There is a newer version: 0.3.16
Show newest version
package io.continual.services.model.core;

import java.util.LinkedList;
import java.util.List;

import io.continual.services.model.core.data.ModelObject;
import io.continual.services.model.core.exceptions.ModelServiceException;

public interface ModelSchema
{
	interface ValidationResult
	{
		boolean isValid ();
		List getProblems ();
	}

	static ValidationResult buildPassingResult () { return new ValidationResult() {

		@Override
		public boolean isValid () { return true; }

		@Override
		public List getProblems () { return new LinkedList<> (); }
	}; }
	
	ValidationResult isValid ( ModelObject object ) throws ModelServiceException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy