Package org.activiti.cloud.modeling.api
Interface ModelValidator
-
- All Superinterfaces:
ModelValidationErrorProducer
- All Known Subinterfaces:
ModelContentValidator,ModelExtensionsValidator
public interface ModelValidator extends ModelValidationErrorProducer
Business logic related with validation of a model
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetHandledContentType()Get handled content type by this validator.ModelTypegetHandledModelType()Get handled model type by this validator.voidvalidate(byte[] modelContent, ValidationContext validationContext)Validate the given model.default voidvalidate(Model model, byte[] modelContent, ValidationContext validationContext, boolean validateUsage)Validate the given model and its usage-
Methods inherited from interface org.activiti.cloud.modeling.api.ModelValidationErrorProducer
createModelValidationError, createModelValidationError
-
-
-
-
Method Detail
-
validate
void validate(byte[] modelContent, ValidationContext validationContext)Validate the given model.- Parameters:
modelContent- content of the model to validatevalidationContext- the validation context
-
validate
default void 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
-
-