Package | Description |
---|---|
javax.validation | |
javax.validation.spi | |
org.hibernate.cfg.beanvalidation | |
org.hibernate.validator |
Bootstrap classes HibernateValidator and
HibernateValidatorConfiguration which uniquely identify Hibernate
Validator and allow to configure it.
|
org.hibernate.validator.engine |
Implementations for the core interfaces of JSR-303.
|
org.hibernate.validator.engine.resolver |
Various implementations of the TraversableResolver interface.
|
org.hibernate.validator.util |
Independent helper classes.
|
org.hibernate.validator.xml |
Classes used to parse Bean Validation XML configuration files.
|
Modifier and Type | Method and Description |
---|---|
TraversableResolver |
Configuration.getDefaultTraversableResolver()
Return an implementation of the
TraversableResolver interface
following the default TraversableResolver defined in the
specification:
if Java Persistence is available in the runtime environment,
a property is considered reachable if Java Persistence considers
the property as loaded
if Java Persistence is not available in the runtime environment,
all properties are considered reachable
all properties are considered cascadable.
|
TraversableResolver |
ValidatorFactory.getTraversableResolver()
Returns the
TraversableResolver instance configured
at initialization time for the ValidatorFactory |
Modifier and Type | Method and Description |
---|---|
ValidatorContext |
ValidatorContext.traversableResolver(TraversableResolver traversableResolver)
Defines the traversable resolver implementation used by the
Validator . |
T |
Configuration.traversableResolver(TraversableResolver resolver)
Defines the traversable resolver used.
|
Modifier and Type | Method and Description |
---|---|
TraversableResolver |
ConfigurationState.getTraversableResolver()
Returns the traversable resolver for this configuration.
|
Modifier and Type | Class and Description |
---|---|
class |
HibernateTraversableResolver
Use Hibernate metadata to ignore cascade on entities.
|
Modifier and Type | Method and Description |
---|---|
HibernateValidatorContext |
HibernateValidatorContext.traversableResolver(TraversableResolver traversableResolver) |
Modifier and Type | Method and Description |
---|---|
TraversableResolver |
ConfigurationImpl.getDefaultTraversableResolver() |
TraversableResolver |
ValidatorFactoryImpl.getTraversableResolver() |
TraversableResolver |
ValidationContext.getTraversableResolver() |
TraversableResolver |
ConfigurationImpl.getTraversableResolver() |
Modifier and Type | Method and Description |
---|---|
static <T> ValidationContext<T,ConstraintViolation<T>> |
ValidationContext.getContextForValidate(T object,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
static <T> MethodValidationContext<T> |
ValidationContext.getContextForValidateParameter(Method method,
int parameterIndex,
T object,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
static <T> MethodValidationContext<T> |
ValidationContext.getContextForValidateParameters(Method method,
T object,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
static <T> ValidationContext<T,ConstraintViolation<T>> |
ValidationContext.getContextForValidateProperty(T rootBean,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
static <T> ValidationContext<T,ConstraintViolation<T>> |
ValidationContext.getContextForValidateValue(Class<T> rootBeanClass,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
HibernateValidatorContext |
ValidatorContextImpl.traversableResolver(TraversableResolver traversableResolver) |
ConfigurationImpl |
ConfigurationImpl.traversableResolver(TraversableResolver resolver) |
Constructor and Description |
---|
MethodValidationContext(Class<T> rootBeanClass,
T rootBean,
Method method,
Integer parameterIndex,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
MethodValidationContext(Class<T> rootBeanClass,
T rootBean,
Method method,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
StandardValidationContext(Class<T> rootBeanClass,
T rootBean,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
ValidationContext(Class<T> rootBeanClass,
T rootBean,
MessageInterpolator messageInterpolator,
ConstraintValidatorFactory constraintValidatorFactory,
TraversableResolver traversableResolver,
boolean failFast) |
ValidatorContextImpl(ConstraintValidatorFactory constraintValidatorFactory,
MessageInterpolator factoryMessageInterpolator,
TraversableResolver factoryTraversableResolver,
ConstraintHelper constraintHelper,
BeanMetaDataCache beanMetaDataCache,
boolean failFast) |
ValidatorImpl(ConstraintValidatorFactory constraintValidatorFactory,
MessageInterpolator messageInterpolator,
TraversableResolver traversableResolver,
ConstraintHelper constraintHelper,
BeanMetaDataCache beanMetaDataCache,
boolean failFast) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultTraversableResolver
A JPA 2 aware
TraversableResolver . |
class |
JPATraversableResolver
An implementation of
TraversableResolver which is aware of JPA 2 and utilizes PersistenceUtil to get
query the reachability of a property. |
class |
SingleThreadCachedTraversableResolver
Cache results of a delegated traversable resovler to optimize calls
It works only for a single validate* call and should not be used if
the TraversableResolver is accessed concurrently
|
Constructor and Description |
---|
SingleThreadCachedTraversableResolver(TraversableResolver delegate) |
Modifier and Type | Method and Description |
---|---|
TraversableResolver |
LazyValidatorFactory.getTraversableResolver() |
Modifier and Type | Method and Description |
---|---|
TraversableResolver |
ValidationBootstrapParameters.getTraversableResolver() |
Modifier and Type | Method and Description |
---|---|
void |
ValidationBootstrapParameters.setTraversableResolver(TraversableResolver traversableResolver) |
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.