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

java.lang.Object
  extended by org.hibernate.validator.engine.ValidationContext<T,ConstraintViolation<T>>
      extended by org.hibernate.validator.engine.StandardValidationContext<T>
Type Parameters:
T - The type of the root bean for which this context is created.

public class StandardValidationContext<T>
extends ValidationContext<T,ConstraintViolation<T>>

A ValidationContext implementation which creates and manages violations of type ConstraintViolation.

Author:
Gunnar Morling

Field Summary
 
Fields inherited from class org.hibernate.validator.engine.ValidationContext
messageInterpolator
 
Constructor Summary
protected StandardValidationContext(Class<T> rootBeanClass, T rootBean, MessageInterpolator messageInterpolator, ConstraintValidatorFactory constraintValidatorFactory, TraversableResolver traversableResolver, boolean failFast)
           
 
Method Summary
<U,V> ConstraintViolation<T>
createConstraintViolation(ValueContext<U,V> localContext, MessageAndPath messageAndPath, ConstraintDescriptor<?> descriptor)
           
 
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

StandardValidationContext

protected StandardValidationContext(Class<T> rootBeanClass,
                                    T rootBean,
                                    MessageInterpolator messageInterpolator,
                                    ConstraintValidatorFactory constraintValidatorFactory,
                                    TraversableResolver traversableResolver,
                                    boolean failFast)
Method Detail

createConstraintViolation

public <U,V> ConstraintViolation<T> createConstraintViolation(ValueContext<U,V> localContext,
                                                              MessageAndPath messageAndPath,
                                                              ConstraintDescriptor<?> descriptor)
Specified by:
createConstraintViolation in class ValidationContext<T,ConstraintViolation<T>>


Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved