public class TestBeanValidation extends java.lang.Object implements BeanValidation
Modifier and Type | Class and Description |
---|---|
static class |
TestBeanValidation.BeanDescriptorStub |
static class |
TestBeanValidation.ValidatorStub |
BeanValidation.ValidationOptions
NAME
Constructor and Description |
---|
TestBeanValidation() |
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