org.hibernate.validator.internal.engine
Class MethodValidationContext<T>
java.lang.Object
org.hibernate.validator.internal.engine.ValidationContext<T,MethodConstraintViolation<T>>
org.hibernate.validator.internal.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,
javax.validation.MessageInterpolator messageInterpolator,
javax.validation.ConstraintValidatorFactory constraintValidatorFactory,
javax.validation.TraversableResolver traversableResolver,
boolean failFast)
|
protected |
MethodValidationContext(Class<T> rootBeanClass,
T rootBean,
Method method,
javax.validation.MessageInterpolator messageInterpolator,
javax.validation.ConstraintValidatorFactory constraintValidatorFactory,
javax.validation.TraversableResolver traversableResolver,
boolean failFast)
|
| Methods inherited from class org.hibernate.validator.internal.engine.ValidationContext |
addConstraintFailures, createConstraintViolations, getConstraintValidatorFactory, getContextForValidate, getContextForValidateParameter, getContextForValidateParameters, getContextForValidateProperty, getContextForValidateValue, getFailingConstraints, getRootBean, getRootBeanClass, getTraversableResolver, isAlreadyValidated, isFailFastModeEnabled, markProcessed |
| 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,
javax.validation.MessageInterpolator messageInterpolator,
javax.validation.ConstraintValidatorFactory constraintValidatorFactory,
javax.validation.TraversableResolver traversableResolver,
boolean failFast)
MethodValidationContext
protected MethodValidationContext(Class<T> rootBeanClass,
T rootBean,
Method method,
Integer parameterIndex,
javax.validation.MessageInterpolator messageInterpolator,
javax.validation.ConstraintValidatorFactory constraintValidatorFactory,
javax.validation.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,
javax.validation.metadata.ConstraintDescriptor<?> descriptor)
- Specified by:
createConstraintViolation in class ValidationContext<T,MethodConstraintViolation<T>>
Copyright © 2012 Oracle Corporation. All Rights Reserved.