org.hibernate.validator.engine
Class MethodValidationContext<T>

java.lang.Object
  extended by org.hibernate.validator.engine.ValidationContext<T,MethodConstraintViolation<T>>
      extended by 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

Field Summary
 
Fields inherited from class org.hibernate.validator.engine.ValidationContext
messageInterpolator
 
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)
           
 
Method Summary
<U,V> MethodConstraintViolation<T>
createConstraintViolation(ValueContext<U,V> localContext, MessageAndPath messageAndPath, ConstraintDescriptor<?> descriptor)
           
 Method getMethod()
           
 Integer getParameterIndex()
           
 
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
 

Constructor Detail

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)
Method Detail

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