T
- The type of the root bean for which this context is created.public class StandardValidationContext<T> extends ValidationContext<T,ConstraintViolation<T>>
ValidationContext
implementation which creates and manages violations of type ConstraintViolation
.messageInterpolator
Modifier | Constructor and Description |
---|---|
protected |
StandardValidationContext(Class<T> rootBeanClass,
T rootBean,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
Modifier and Type | Method and Description |
---|---|
<U,V> ConstraintViolation<T> |
createConstraintViolation(ValueContext<U,V> localContext,
MessageAndPath messageAndPath,
ConstraintDescriptor<?> descriptor) |
addConstraintFailures, createConstraintViolations, getConstraintValidatorFactory, getContextForValidate, getContextForValidateParameter, getContextForValidateParameters, getContextForValidateProperty, getContextForValidateValue, getFailingConstraints, getRootBean, getRootBeanClass, getTraversableResolver, isAlreadyValidated, isFailFastModeEnabled, markProcessed
protected StandardValidationContext(Class<T> rootBeanClass, T rootBean, MessageInterpolator messageInterpolator, ConstraintValidatorFactory constraintValidatorFactory, TraversableResolver traversableResolver, boolean failFast)
public <U,V> ConstraintViolation<T> createConstraintViolation(ValueContext<U,V> localContext, MessageAndPath messageAndPath, ConstraintDescriptor<?> descriptor)
createConstraintViolation
in class ValidationContext<T,ConstraintViolation<T>>
Copyright © 2018 JBoss by Red Hat. All rights reserved.