org.hibernate.validator.engine
Class MethodValidationContext<T>
java.lang.Object
org.hibernate.validator.engine.ValidationContext<T,MethodConstraintViolation<T>>
org.hibernate.validator.engine.MethodValidationContext<T>
- Type Parameters:
T
- The type of the root bean for which this context is created.
public class MethodValidationContext<T>
- extends ValidationContext<T,MethodConstraintViolation<T>>
A ValidationContext
implementation which creates and manages
violations of type MethodConstraintViolation
.
- Author:
- Gunnar Morling
Constructor Summary |
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)
|
Methods inherited from class org.hibernate.validator.engine.ValidationContext |
addConstraintFailures, createConstraintViolations, getConstraintValidatorFactory, getContextForValidate, getContextForValidateParameter, getContextForValidateParameters, getContextForValidateProperty, getContextForValidateValue, getFailingConstraints, getMessageInterpolator, getRootBean, getRootBeanClass, getTraversableResolver, isAlreadyValidated, markProcessed, shouldFailFast |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodValidationContext
protected MethodValidationContext(Class<T> rootBeanClass,
T rootBean,
Method method,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast)
MethodValidationContext
protected MethodValidationContext(Class<T> rootBeanClass,
T rootBean,
Method method,
Integer parameterIndex,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast)
getMethod
public Method getMethod()
getParameterIndex
public Integer getParameterIndex()
createConstraintViolation
public <U,V> MethodConstraintViolation<T> createConstraintViolation(ValueContext<U,V> localContext,
MessageAndPath messageAndPath,
ConstraintDescriptor<?> descriptor)
- Specified by:
createConstraintViolation
in class ValidationContext<T,MethodConstraintViolation<T>>
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved