Class GenericPayloadValidator<T>
- java.lang.Object
-
- org.activiti.cloud.services.modeling.rest.validation.GenericPayloadValidator<T>
-
- All Implemented Interfaces:
ModelValidationErrorProducer,org.springframework.validation.Validator
- Direct Known Subclasses:
ModelPayloadValidator,ProjectPayloadValidator
public abstract class GenericPayloadValidator<T> extends Object implements org.springframework.validation.Validator, ModelValidationErrorProducer
Abstract payload validator.
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<T>supportedClassprotected booleanvalidateRequiredFields
-
Constructor Summary
Constructors Constructor Description GenericPayloadValidator(Class<T> supportedClass, boolean validateRequiredFields)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleansupports(Class<?> clazz)voidvalidate(Object target, org.springframework.validation.Errors errors)protected abstract voidvalidatePayload(T target, org.springframework.validation.Errors errors)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.activiti.cloud.modeling.api.ModelValidationErrorProducer
createModelValidationError, createModelValidationError
-
-
-
-
Method Detail
-
supports
public boolean supports(Class<?> clazz)
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
public void validate(Object target, org.springframework.validation.Errors errors)
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
validatePayload
protected abstract void validatePayload(T target, org.springframework.validation.Errors errors)
-
-