public class ValidationContext<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ValidationContext.ValidationContextBuilder
Builder for creating
ValidationContext s suited for the different kinds of validation. |
public static ValidationContext.ValidationContextBuilder getValidationContextBuilder(ConstraintValidatorManager constraintValidatorManager, ConstraintValidatorFactory constraintValidatorFactory, org.hibernate.validator.internal.engine.ValidationContext.ValidatorScopedContext validatorScopedContext, TraversableResolver traversableResolver, HibernateConstraintValidatorInitializationContext constraintValidatorInitializationContext)
public T getRootBean()
public BeanMetaData<T> getRootBeanMetaData()
public Executable getExecutable()
public Optional<ExecutableMetaData> getExecutableMetaData()
public TraversableResolver getTraversableResolver()
public boolean isFailFastModeEnabled()
public ConstraintValidatorManager getConstraintValidatorManager()
public List<String> getParameterNames()
ParameterNameProvider
.null
otherwise.public ClockProvider getClockProvider()
public Object getConstraintValidatorPayload()
public HibernateConstraintValidatorInitializationContext getConstraintValidatorInitializationContext()
public Set<ConstraintViolation<T>> createConstraintViolations(ValueContext<?,?> localContext, ConstraintValidatorContextImpl constraintValidatorContext)
public ConstraintValidatorFactory getConstraintValidatorFactory()
public boolean isBeanAlreadyValidated(Object value, Class<?> group, PathImpl path)
public void markCurrentBeanAsProcessed(ValueContext<?,?> valueContext)
public void addConstraintFailures(Set<ConstraintViolation<T>> failingConstraintViolations)
public Set<ConstraintViolation<T>> getFailingConstraints()
public ConstraintViolation<T> createConstraintViolation(ValueContext<?,?> localContext, ConstraintViolationCreationContext constraintViolationCreationContext, ConstraintDescriptor<?> descriptor)
public boolean hasMetaConstraintBeenProcessed(Object bean, Path path, MetaConstraint<?> metaConstraint)
public void markConstraintProcessed(Object bean, Path path, MetaConstraint<?> metaConstraint)
public String getValidatedProperty()
public void setValidatedProperty(String validatedProperty)
Copyright © 2021 JBoss by Red Hat. All rights reserved.