public interface CustomModelValidator
Custom model validator.
Applications may enforce extra rules on the model. The validators must be annotated with the
Applications may enforce extra rules on the model. 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 Summary
Modifier and TypeMethodDescriptionstatic Collection
<CustomModelValidator> Gets all custom model validators.void
Validates the model.
-
Method Details
-
validate
Validates the model.- Parameters:
model
- the model- Throws:
ModelException
- if validation failed
-
loadValidators
Gets all custom model validators.- Returns:
- the validators, never null
-