org.hibernate.validator.engine
Class StandardValidationContext<T>
java.lang.Object
org.hibernate.validator.engine.ValidationContext<T,ConstraintViolation<T>>
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
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 |
StandardValidationContext
protected StandardValidationContext(Class<T> rootBeanClass,
T rootBean,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast)
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