public class ValidatorBuilderJsr303 extends AbstractValidatorBuilder
ValidatorJsr303
.Modifier and Type | Field and Description |
---|---|
private Class<?>[] |
groups |
private javax.validation.Validator |
validator |
Constructor and Description |
---|
ValidatorBuilderJsr303()
The constructor.
|
ValidatorBuilderJsr303(javax.validation.Validator validator)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Class<?>[] |
getGroups() |
javax.validation.Validator |
getValidator() |
AbstractValidator<?> |
newValidator(Class<?> pojoType,
String property,
Class<?> propertyType)
|
<T> AbstractValidator<T> |
newValidator(Class<?> pojoType,
TypedProperty<T> property,
Class<T> propertyType)
|
<V> AbstractValidator<V> |
newValidator(Class<V> pojoType)
Creates a new instance of
ValueValidator validating the specified
Pojo . |
void |
setGroups(Class<?>[] groups) |
newValidator, newValidator
private final javax.validation.Validator validator
private Class<?>[] groups
public ValidatorBuilderJsr303()
public ValidatorBuilderJsr303(javax.validation.Validator validator)
validator
- is the Validator
instance to use.public javax.validation.Validator getValidator()
Validator
instance.public Class<?>[] getGroups()
Default
.public <V> AbstractValidator<V> newValidator(Class<V> pojoType)
ValidatorBuilder
ValueValidator
validating the specified
Pojo
.V
- is the generic type of pojoType
.pojoType
- is the Class
reflecting to Pojo
to validate.ValueValidator
instance.public AbstractValidator<?> newValidator(Class<?> pojoType, String property, Class<?> propertyType)
ValidatorBuilder
pojoType
- is the Class
reflecting to Pojo
to validate.property
- is the property to validate.propertyType
- is the property type
.ValueValidator
instance.public <T> AbstractValidator<T> newValidator(Class<?> pojoType, TypedProperty<T> property, Class<T> propertyType)
ValidatorBuilder
T
- is the generic type of the property
.pojoType
- is the Class
reflecting to Pojo
to validate.property
- is the TypedProperty
to validate.propertyType
- is the property type
.ValueValidator
instance.Copyright © 2001–2016 mmm-Team. All rights reserved.