public class AttributeConstraintValidator extends java.lang.Object implements ValidateInterceptor<AttributeConstraintModel>
| Constructor and Description |
|---|
AttributeConstraintValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isConstraintValidForAccessor(AttributeConstraintModel constraint) |
void |
onValidate(AttributeConstraintModel constraint,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setAnnotationsMappingRegistry(AnnotationsMappingRegistry annotationsMappingRegistry) |
void |
setTypeService(TypeService typeService) |
public void onValidate(AttributeConstraintModel constraint, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<AttributeConstraintModel>constraint - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected boolean isConstraintValidForAccessor(AttributeConstraintModel constraint)
public void setTypeService(TypeService typeService)
public void setAnnotationsMappingRegistry(AnnotationsMappingRegistry annotationsMappingRegistry)
Copyright © 2018 SAP SE. All Rights Reserved.