Interface CustomModelValidator


public interface CustomModelValidator
Custom model validator.
Applications may enforce extra rules on the model. The validators are invoked at the end of Model.loadFromDirectory(String, boolean), whenever the directory was (re)loaded.
The validators must be annotated with the Service-annotation as follows:
   @Service(CustomModelValidator.class)
   public class MyModelValidator implements CustomModelValidator {

     @Override
     public void validate(Model model) throws ModelException {
       ...
     }
   }
  • Method Details