Package org.activiti.cloud.modeling.api
Interface ModelValidator
- All Superinterfaces:
ModelValidationErrorProducer
- All Known Subinterfaces:
ModelContentValidator,ModelExtensionsValidator
Business logic related with validation of a model
-
Method Summary
Modifier and TypeMethodDescriptionGet handled content type by this validator.Get handled model type by this validator.validate(byte[] modelContent, ValidationContext validationContext) Validate the given model.default Collection<ModelValidationError>validate(Model model, byte[] modelContent, ValidationContext validationContext, boolean validateUsage) Validate the given model and its usageMethods inherited from interface org.activiti.cloud.modeling.api.ModelValidationErrorProducer
createModelValidationError, createModelValidationError
-
Method Details
-
validate
Validate the given model.- Parameters:
modelContent- content of the model to validatevalidationContext- the validation context
-
validate
default Collection<ModelValidationError> validate(Model model, byte[] modelContent, ValidationContext validationContext, boolean validateUsage) Validate the given model and its usage- Parameters:
model- the model to validatemodelContent- content of the model to validatevalidationContext- the validation contextvalidateUsage- validate the usage of a model
-
getHandledModelType
ModelType getHandledModelType()Get handled model type by this validator.- Returns:
- handled model type
-
getHandledContentType
String getHandledContentType()Get handled content type by this validator.- Returns:
- handled content type
-