Top Description Fields Constructors Methods
org.hibernate.validator.internal.engine.validationcontext

public Class ValidatorScopedContext

extends Object
Class Inheritance
Imports
java.time.Duration, jakarta.validation.ClockProvider, .MessageInterpolator, .Validator, org.hibernate.validator.internal.engine.ValidatorFactoryScopedContext, org.hibernate.validator.internal.util.ExecutableParameterNameProvider, org.hibernate.validator.messageinterpolation.ExpressionLanguageFeatureLevel, org.hibernate.validator.spi.scripting.ScriptEvaluatorFactory

Context object storing the Validator level helper and configuration properties.

There should be only one per Validator instance.

Field Summary

Modifier and TypeField and Description
private final ClockProvider
clockProvider

Provider for the current time when validating @Future or @Past

private final ExpressionLanguageFeatureLevel
constraintExpressionLanguageFeatureLevel

Hibernate Validator specific flag to define Expression Language feature levels for constraints.

private final Object
constraintValidatorPayload

Hibernate Validator specific payload passed to the constraint validators.

private final ExpressionLanguageFeatureLevel
customViolationExpressionLanguageFeatureLevel

Hibernate Validator specific flag to define Expression Language feature levels for custom violations.

private final boolean
failFast

Hibernate Validator specific flag to abort validation on first constraint violation.

private final MessageInterpolator
messageInterpolator

The message interpolator.

private final ExecutableParameterNameProvider
parameterNameProvider

The parameter name provider.

private final ScriptEvaluatorFactory
scriptEvaluatorFactory

Used to get the ScriptEvaluatorFactory when validating @ScriptAssert and @ParameterScriptAssert constraints.

private final boolean
private final Duration
temporalValidationTolerance

Defines the temporal validation tolerance i.e. the allowed margin of error when comparing date/time in temporal constraints.

private final boolean
traversableResolverResultCacheEnabled

Hibernate Validator specific flag to disable the TraversableResolver result cache.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ClockProvider
public ExpressionLanguageFeatureLevel
public Object
public ExpressionLanguageFeatureLevel
public MessageInterpolator
public ExecutableParameterNameProvider
public ScriptEvaluatorFactory
public Duration
public boolean
public boolean
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clockProviderback to summary
private final ClockProvider clockProvider

Provider for the current time when validating @Future or @Past

constraintExpressionLanguageFeatureLevelback to summary
private final ExpressionLanguageFeatureLevel constraintExpressionLanguageFeatureLevel

Hibernate Validator specific flag to define Expression Language feature levels for constraints.

constraintValidatorPayloadback to summary
private final Object constraintValidatorPayload

Hibernate Validator specific payload passed to the constraint validators.

customViolationExpressionLanguageFeatureLevelback to summary
private final ExpressionLanguageFeatureLevel customViolationExpressionLanguageFeatureLevel

Hibernate Validator specific flag to define Expression Language feature levels for custom violations.

failFastback to summary
private final boolean failFast

Hibernate Validator specific flag to abort validation on first constraint violation.

messageInterpolatorback to summary
private final MessageInterpolator messageInterpolator

The message interpolator.

parameterNameProviderback to summary
private final ExecutableParameterNameProvider parameterNameProvider

The parameter name provider.

scriptEvaluatorFactoryback to summary
private final ScriptEvaluatorFactory scriptEvaluatorFactory

Used to get the ScriptEvaluatorFactory when validating @ScriptAssert and @ParameterScriptAssert constraints.

showValidatedValuesInTraceLogsback to summary
private final boolean showValidatedValuesInTraceLogs
temporalValidationToleranceback to summary
private final Duration temporalValidationTolerance

Defines the temporal validation tolerance i.e. the allowed margin of error when comparing date/time in temporal constraints.

traversableResolverResultCacheEnabledback to summary
private final boolean traversableResolverResultCacheEnabled

Hibernate Validator specific flag to disable the TraversableResolver result cache.

Constructor Detail

ValidatorScopedContextback to summary
public ValidatorScopedContext(ValidatorFactoryScopedContext validatorFactoryScopedContext)

Method Detail

getClockProviderback to summary
public ClockProvider getClockProvider()
getConstraintExpressionLanguageFeatureLevelback to summary
public ExpressionLanguageFeatureLevel getConstraintExpressionLanguageFeatureLevel()
getConstraintValidatorPayloadback to summary
public Object getConstraintValidatorPayload()
getCustomViolationExpressionLanguageFeatureLevelback to summary
public ExpressionLanguageFeatureLevel getCustomViolationExpressionLanguageFeatureLevel()
getMessageInterpolatorback to summary
public MessageInterpolator getMessageInterpolator()
getParameterNameProviderback to summary
public ExecutableParameterNameProvider getParameterNameProvider()
getScriptEvaluatorFactoryback to summary
public ScriptEvaluatorFactory getScriptEvaluatorFactory()
getTemporalValidationToleranceback to summary
public Duration getTemporalValidationTolerance()
isFailFastback to summary
public boolean isFailFast()
isShowValidatedValuesInTraceLogsback to summary
public boolean isShowValidatedValuesInTraceLogs()
isTraversableResolverResultCacheEnabledback to summary
public boolean isTraversableResolverResultCacheEnabled()