public class DefaultFacadeValidationService extends java.lang.Object implements FacadeValidationService
Errors, ensure that the given validator can support the object to be validated, then perform the validation.
If any validation errors were found, then a ValidationException is thrown.
| Constructor and Description |
|---|
DefaultFacadeValidationService() |
| Modifier and Type | Method and Description |
|---|---|
protected ErrorFactory |
getValidatorErrorFactory() |
void |
setValidatorErrorFactory(ErrorFactory validatorErrorFactory) |
void |
validate(Validator validator,
java.lang.Object validatee)
Validate the given DTO.
|
void |
validate(Validator validator,
java.lang.Object validatee,
java.lang.Object bindingObject)
Validate the given DTO.
|
protected void |
validateInternal(Validator validator,
java.lang.Object validatee,
Errors errors)
Validate the object using the provided binded errors
|
public void validate(Validator validator,
java.lang.Object validatee)
throws ValidationException
FacadeValidationServicevalidate in interface FacadeValidationServicevalidator - - the validator to use for the validationvalidatee - - the object being validatedValidationException - when validation errors were foundpublic void validate(Validator validator,
java.lang.Object validatee,
java.lang.Object bindingObject)
throws ValidationException
FacadeValidationServicevalidate in interface FacadeValidationServicevalidator - - the validator to use for the validationvalidatee - - the object being validatedbindingObject - - the object to use for binding the field errorsValidationException - when validation errors were foundprotected void validateInternal(Validator validator,
java.lang.Object validatee,
Errors errors)
throws ValidationException
validator - validatee - errors - ValidationExceptionprotected ErrorFactory getValidatorErrorFactory()
public void setValidatorErrorFactory(ErrorFactory validatorErrorFactory)
Copyright © 2018 SAP SE. All Rights Reserved.