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 Modifier and Type Method Description java.lang.StringgetHandledContentType()Get handled content type by this validator.ModelTypegetHandledModelType()Get handled model type by this validator.voidvalidate(byte[] modelFile, ValidationContext validationContext)Validate the given model.-
Methods inherited from interface org.activiti.cloud.modeling.api.ModelValidationErrorProducer
createModelValidationError, createModelValidationError, createModelValidationError, createModelValidationError, createModelValidationError
-
-
-
-
Method Detail
-
validate
void validate(byte[] modelFile, ValidationContext validationContext)Validate the given model.- Parameters:
modelFile- the model to validatevalidationContext- the validation context
-
getHandledModelType
ModelType getHandledModelType()
Get handled model type by this validator.- Returns:
- handled model type
-
getHandledContentType
java.lang.String getHandledContentType()
Get handled content type by this validator.- Returns:
- handled content type
-
-