T
- The type of the root bean for which this context is created.public class MethodValidationContext<T> extends ValidationContext<T,MethodConstraintViolation<T>>
ValidationContext
implementation which creates and manages
violations of type MethodConstraintViolation
.messageInterpolator
Modifier | Constructor and Description |
---|---|
protected |
MethodValidationContext(Class<T> rootBeanClass,
T rootBean,
Method method,
Integer parameterIndex,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
protected |
MethodValidationContext(Class<T> rootBeanClass,
T rootBean,
Method method,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
Modifier and Type | Method and Description |
---|---|
<U,V> MethodConstraintViolation<T> |
createConstraintViolation(ValueContext<U,V> localContext,
MessageAndPath messageAndPath,
ConstraintDescriptor<?> descriptor) |
Method |
getMethod() |
Integer |
getParameterIndex() |
addConstraintFailures, createConstraintViolations, getConstraintValidatorFactory, getContextForValidate, getContextForValidateParameter, getContextForValidateParameters, getContextForValidateProperty, getContextForValidateValue, getFailingConstraints, getRootBean, getRootBeanClass, getTraversableResolver, isAlreadyValidated, isFailFastModeEnabled, markProcessed
protected MethodValidationContext(Class<T> rootBeanClass, T rootBean, Method method, MessageInterpolator messageInterpolator, ConstraintValidatorFactory constraintValidatorFactory, TraversableResolver traversableResolver, boolean failFast)
protected MethodValidationContext(Class<T> rootBeanClass, T rootBean, Method method, Integer parameterIndex, MessageInterpolator messageInterpolator, ConstraintValidatorFactory constraintValidatorFactory, TraversableResolver traversableResolver, boolean failFast)
public Method getMethod()
public Integer getParameterIndex()
public <U,V> MethodConstraintViolation<T> createConstraintViolation(ValueContext<U,V> localContext, MessageAndPath messageAndPath, ConstraintDescriptor<?> descriptor)
createConstraintViolation
in class ValidationContext<T,MethodConstraintViolation<T>>
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved