public abstract class AbstractGwtValidator extends Object implements javax.validation.Validator
Validator
in GWT.
All methods that do not need to be generated go here.
Constructor and Description |
---|
AbstractGwtValidator()
Creates a validator initialized with the default group inheritance map.
|
AbstractGwtValidator(ValidationGroupsMetadata validationGroupsMetadata) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkGroups(Class<?>... groups) |
protected void |
checkNotNull(Object object,
String name) |
protected javax.validation.ConstraintValidatorFactory |
getConstraintValidatorFactory() |
protected MessageInterpolator |
getMessageInterpolator() |
protected javax.validation.TraversableResolver |
getTraversableResolver() |
ValidationGroupsMetadata |
getValidationGroupsMetadata() |
void |
init(javax.validation.ConstraintValidatorFactory factory,
MessageInterpolator messageInterpolator,
javax.validation.TraversableResolver traversableResolver) |
<T> T |
unwrap(Class<T> type) |
abstract <T> Set<javax.validation.ConstraintViolation<T>> |
validate(GwtValidationContext<T> context,
Object object,
Class<?>... groups) |
public AbstractGwtValidator()
public AbstractGwtValidator(ValidationGroupsMetadata validationGroupsMetadata)
validationGroupsMetadata
- Validation group metadata.public ValidationGroupsMetadata getValidationGroupsMetadata()
public void init(javax.validation.ConstraintValidatorFactory factory, MessageInterpolator messageInterpolator, javax.validation.TraversableResolver traversableResolver)
public <T> T unwrap(Class<T> type)
unwrap
in interface javax.validation.Validator
public abstract <T> Set<javax.validation.ConstraintViolation<T>> validate(GwtValidationContext<T> context, Object object, Class<?>... groups) throws javax.validation.ValidationException
javax.validation.ValidationException
protected void checkGroups(Class<?>... groups)
protected void checkNotNull(Object object, String name) throws IllegalArgumentException
IllegalArgumentException
protected javax.validation.ConstraintValidatorFactory getConstraintValidatorFactory()
protected MessageInterpolator getMessageInterpolator()
protected javax.validation.TraversableResolver getTraversableResolver()
Copyright © 2018. All rights reserved.