io.continual.services.model.core.ModelSchema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of continualModel Show documentation
Show all versions of continualModel Show documentation
Continual's modeling library.
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;
}