@Component(value="cuba_BeanValidation") public class BeanValidationImpl extends java.lang.Object implements BeanValidation
BeanValidation.ValidationOptions
NAME
Constructor and Description |
---|
BeanValidationImpl() |
Modifier and Type | Method and Description |
---|---|
javax.validation.Validator |
getValidator()
Get default validator for current locale if there is current UserSession or with default locale.
|
javax.validation.Validator |
getValidator(org.hibernate.validator.cfg.ConstraintMapping constraintMapping)
Get validator with custom constraint mapping and current locale if there is current UserSession or with default locale.
|
javax.validation.Validator |
getValidator(org.hibernate.validator.cfg.ConstraintMapping constraintMapping,
BeanValidation.ValidationOptions options)
Get validator with custom constraint mapping and additional validation options.
|
public javax.validation.Validator getValidator()
BeanValidation
getValidator
in interface BeanValidation
public javax.validation.Validator getValidator(org.hibernate.validator.cfg.ConstraintMapping constraintMapping)
BeanValidation
getValidator
in interface BeanValidation
constraintMapping
- constraint mappingpublic javax.validation.Validator getValidator(@Nullable org.hibernate.validator.cfg.ConstraintMapping constraintMapping, BeanValidation.ValidationOptions options)
BeanValidation
getValidator
in interface BeanValidation
constraintMapping
- constraint mappingoptions
- options