Top Description Fields Methods
org.hibernate.validator

public Interface BaseHibernateValidatorConfiguration<S extends org.hibernate.validator.BaseHibernateValidatorConfiguration<S>>

extends Configuration<S extends BaseHibernateValidatorConfiguration<S>>
Known Direct Subinterfaces
org.hibernate.validator.HibernateValidatorConfiguration, org.hibernate.validator.PredefinedScopeHibernateValidatorConfiguration
Known Direct Implementers
org.hibernate.validator.internal.engine.AbstractConfigurationImpl
Imports
java.time.Duration, java.util.Arrays, .HashSet, .Locale, .Set, jakarta.validation.Configuration, .ConstraintValidatorContext, .ConstraintViolation, .TraversableResolver, jakarta.validation.constraints.Future, .FutureOrPresent, .Past, .PastOrPresent, jakarta.validation.valueextraction.ValueExtractor, org.hibernate.validator.cfg.ConstraintMapping, org.hibernate.validator.constraints.ParameterScriptAssert, .ScriptAssert, org.hibernate.validator.messageinterpolation.ExpressionLanguageFeatureLevel, org.hibernate.validator.spi.messageinterpolation.LocaleResolver, org.hibernate.validator.metadata.BeanMetaDataClassNormalizer, org.hibernate.validator.spi.nodenameprovider.PropertyNodeNameProvider, org.hibernate.validator.spi.properties.GetterPropertySelectionStrategy, org.hibernate.validator.spi.resourceloading.ResourceBundleLocator, org.hibernate.validator.spi.scripting.ScriptEvaluator, .ScriptEvaluatorFactory

Base interface for Hibernate Validator specific configurations.

Should not be used directly, prefer HibernateValidatorConfiguration or PredefinedScopeHibernateValidatorConfiguration.

Authors
Emmanuel Bernard, Gunnar Morling, Kevin Pollet <[email protected]> (C) 2011 SERLI, Hardy Ferentschik, Chris Beckey <[email protected]>

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
public static final String
public static final String
CONSTRAINT_EXPRESSION_LANGUAGE_FEATURE_LEVEL

Property for configuring the Expression Language feature level for constraints, allowing to define which Expression Language features are available for message interpolation.

public static final String
CONSTRAINT_MAPPING_CONTRIBUTOR

Deprecated planned for removal. Use hibernate.validator.constraint_mapping_contributors instead.
public static final String
CONSTRAINT_MAPPING_CONTRIBUTORS

Property for configuring constraint mapping contributors, allowing to set up one or more constraint mappings for the default validator factory.

public static final String
CUSTOM_VIOLATION_EXPRESSION_LANGUAGE_FEATURE_LEVEL

Property for configuring the Expression Language feature level for custom violations, allowing to define which Expression Language features are available for message interpolation.

public static final String
public static final String
FAIL_FAST

Property corresponding to the failFast method.

public static final String
GETTER_PROPERTY_SELECTION_STRATEGY_CLASSNAME

Property for configuring the getter property selection strategy, allowing to set which rules will be applied to determine if a method is a valid JavaBean getter.

public static final String
LOCALE_RESOLVER_CLASSNAME

Property for configuring the locale resolver, allowing to select an implementation of LocaleResolver which will be used for locale resolution when interpolating a message.

public static final String
PROPERTY_NODE_NAME_PROVIDER_CLASSNAME

Property for configuring the property node name provider, allowing to select an implementation of PropertyNodeNameProvider which will be used for property name resolution when creating a property path.

public static final String
SCRIPT_EVALUATOR_FACTORY_CLASSNAME

Property for configuring the script evaluator factory, allowing to set up which factory will be used to create ScriptEvaluators for evaluation of script expressions in ScriptAssert and ParameterScriptAssert constraints.

public static final String
SHOW_VALIDATED_VALUE_IN_TRACE_LOGS

Property for trace level logs to include values under validation when constraint checks are executed.

public static final String
TEMPORAL_VALIDATION_TOLERANCE

Property for configuring temporal validation tolerance, allowing to set the acceptable margin of error when comparing date/time in temporal constraints.

Method Summary

Modifier and TypeMethod and Description
public S

Returns:

this following the chaining method pattern
addMapping
(ConstraintMapping
ConstraintMapping instance containing programmatic configured constraints
mapping
)

Adds the specified ConstraintMapping instance to the configuration.

public S

Returns:

this following the chaining method pattern
allowMultipleCascadedValidationOnReturnValues
(boolean
flag determining whether validation will allow multiple cascaded validation on return values.
allow
)

Define whether more than one constraint on a return value may be marked for cascading validation are allowed.

public S

Returns:

this following the chaining method pattern
allowOverridingMethodAlterParameterConstraint
(boolean
flag determining whether validation will allow overriding to alter parameter constraints.
allow
)

Define whether overriding methods that override constraints should throw a ConstraintDefinitionException.

public S

Returns:

this following the chaining method pattern
allowParallelMethodsDefineParameterConstraints
(boolean
flag determining whether validation will allow parameter constraints in parallel hierarchies
allow
)

Define whether parallel methods that define constraints should throw a ConstraintDefinitionException.

public S
public S

Returns:

this following the chaining method pattern
constraintExpressionLanguageFeatureLevel
(ExpressionLanguageFeatureLevel expressionLanguageFeatureLevel)

Allows setting the Expression Language feature level for message interpolation of constraint messages.

public S

Returns:

this following the chaining method pattern
constraintValidatorPayload
(Object
the payload passed to constraint validators
constraintValidatorPayload
)

Allows to set a payload which will be passed to the constraint validators.

public ConstraintMapping

Returns:

A new constraint mapping.
createConstraintMapping
()

Creates a new constraint mapping which can be used to programmatically configure the constraints for given types.

public S

Returns:

this following the chaining method pattern
customViolationExpressionLanguageFeatureLevel
(ExpressionLanguageFeatureLevel expressionLanguageFeatureLevel)

Allows setting the Expression Language feature level for message interpolation of custom violation messages.

public S
defaultLocale(Locale defaultLocale)

Allows setting the default locale used to interpolate the constraint violation messages.

public S

Returns:

this following the chaining method pattern
enableTraversableResolverResultCache
(boolean
flag determining whether per validation call caching is enabled for TraversableResolver results.
enabled
)

Define whether the per validation call caching of TraversableResolver results is enabled.

public S

Returns:

this following the chaining method pattern
externalClassLoader
(ClassLoader
The class loader for loading user-provided resources.
externalClassLoader
)

Sets the class loader to be used for loading user-provided resources:

  • XML descriptors (META-INF/validation.xml as well as XML constraint mappings)
  • classes specified by name in XML descriptors (e.g. custom message interpolators etc.)
  • the ValidationMessages resource bundle
public S

Returns:

this following the chaining method pattern
failFast
(boolean
true to enable fail fast, false otherwise.
failFast
)

En- or disables the fail fast mode.

public ResourceBundleLocator

Returns:

The default ResourceBundleLocator. Never null.
getDefaultResourceBundleLocator
()

Returns the ResourceBundleLocator used by the default message interpolator to load user-provided resource bundles.

public Set<ValueExtractor<?>>

Returns:

the default ValueExtractor implementations compliant with the specification
getDefaultValueExtractors
()

Returns the default ValueExtractor implementations as per the specification.

public S

Returns:

this following the chaining method pattern
getterPropertySelectionStrategy
(GetterPropertySelectionStrategy getterPropertySelectionStrategy)

Allows to set a getter property selection strategy defining the rules determining if a method is a getter or not.

public S

Returns:

this following the chaining method pattern
localeResolver
(LocaleResolver
the LocaleResolver to be used
localeResolver
)

Allows setting a locale resolver, defining how the locale will be resolved when interpolating the message of a constraint violation.

public S
locales(Set<Locale> locales)

Allows setting the list of the locales supported by this ValidatorFactory.

public default S
locales(Locale... locales)

Allows setting the list of the locales supported by this ValidatorFactory.

public S

Returns:

this following the chaining method pattern
propertyNodeNameProvider
(PropertyNodeNameProvider propertyNodeNameProvider)

Allows to set a property node name provider, defining how the name of a property node will be resolved when constructing a property path as the one returned by ConstraintViolation#getPropertyPath().

public S

Returns:

this following the chaining method pattern
scriptEvaluatorFactory
(ScriptEvaluatorFactory
the ScriptEvaluatorFactory to be used
scriptEvaluatorFactory
)

Allows to specify a custom ScriptEvaluatorFactory responsible for creating ScriptEvaluators used to evaluate script expressions for ScriptAssert and ParameterScriptAssert constraints.

public S

Returns:

this following the chaining method pattern
showValidatedValuesInTraceLogs
(boolean
flag determining whether validated values will be printed out into trace level logs or not.
enabled
)

Allows setting the logging configuration that would include validated values in trace level logs.

public S

Returns:

this following the chaining method pattern
temporalValidationTolerance
(Duration
the acceptable tolerance
temporalValidationTolerance
)

Allows to set the acceptable margin of error when comparing date/time in temporal constraints such as Past/PastOrPresent and Future/FutureOrPresent.

Inherited from jakarta.validation.Configuration:
addMappingaddPropertyaddValueExtractorbuildValidatorFactoryclockProviderconstraintValidatorFactorygetBootstrapConfigurationgetDefaultClockProvidergetDefaultConstraintValidatorFactorygetDefaultMessageInterpolatorgetDefaultParameterNameProvidergetDefaultTraversableResolverignoreXmlConfigurationmessageInterpolatorparameterNameProvidertraversableResolver

Field Detail

ALLOW_MULTIPLE_CASCADED_VALIDATION_ON_RESULTback to summary
public static final String ALLOW_MULTIPLE_CASCADED_VALIDATION_ON_RESULT

Property corresponding to the allowMultipleCascadedValidationOnReturnValues method. Accepts true or false. Defaults to false.

ALLOW_PARALLEL_METHODS_DEFINE_PARAMETER_CONSTRAINTSback to summary
public static final String ALLOW_PARALLEL_METHODS_DEFINE_PARAMETER_CONSTRAINTS

Property corresponding to the allowParallelMethodsDefineParameterConstraints method. Accepts true or false. Defaults to false.

ALLOW_PARAMETER_CONSTRAINT_OVERRIDEback to summary
public static final String ALLOW_PARAMETER_CONSTRAINT_OVERRIDE

Property corresponding to the allowOverridingMethodAlterParameterConstraint method. Accepts true or false. Defaults to false.

CONSTRAINT_EXPRESSION_LANGUAGE_FEATURE_LEVELback to summary
public static final String CONSTRAINT_EXPRESSION_LANGUAGE_FEATURE_LEVEL

Property for configuring the Expression Language feature level for constraints, allowing to define which Expression Language features are available for message interpolation.

This property only affects the EL feature level of "static" constraint violation messages. In particular, it doesn't affect the default EL feature level for custom violations. Refer to CUSTOM_VIOLATION_EXPRESSION_LANGUAGE_FEATURE_LEVEL to configure that.

Annotations
@Incubating
Since
6.2
CONSTRAINT_MAPPING_CONTRIBUTORback to summary
public static final String CONSTRAINT_MAPPING_CONTRIBUTOR

Deprecated

planned for removal. Use hibernate.validator.constraint_mapping_contributors instead.

Annotations
@Deprecated
Since
5.2
CONSTRAINT_MAPPING_CONTRIBUTORSback to summary
public static final String CONSTRAINT_MAPPING_CONTRIBUTORS

Property for configuring constraint mapping contributors, allowing to set up one or more constraint mappings for the default validator factory. Accepts a String with the comma separated fully-qualified class names of one or more org.hibernate.validator.spi.cfg.ConstraintMappingContributor implementations.

Since
5.3
CUSTOM_VIOLATION_EXPRESSION_LANGUAGE_FEATURE_LEVELback to summary
public static final String CUSTOM_VIOLATION_EXPRESSION_LANGUAGE_FEATURE_LEVEL

Property for configuring the Expression Language feature level for custom violations, allowing to define which Expression Language features are available for message interpolation.

Annotations
@Incubating
Since
6.2
ENABLE_TRAVERSABLE_RESOLVER_RESULT_CACHEback to summary
public static final String ENABLE_TRAVERSABLE_RESOLVER_RESULT_CACHE

Property corresponding to the enableTraversableResolverResultCache(boolean). Accepts true or false. Defaults to true.

Since
6.0.3
FAIL_FASTback to summary
public static final String FAIL_FAST

Property corresponding to the failFast method. Accepts true or false. Defaults to false.

GETTER_PROPERTY_SELECTION_STRATEGY_CLASSNAMEback to summary
public static final String GETTER_PROPERTY_SELECTION_STRATEGY_CLASSNAME

Property for configuring the getter property selection strategy, allowing to set which rules will be applied to determine if a method is a valid JavaBean getter.

Annotations
@Incubating
Since
6.1.0
LOCALE_RESOLVER_CLASSNAMEback to summary
public static final String LOCALE_RESOLVER_CLASSNAME

Property for configuring the locale resolver, allowing to select an implementation of LocaleResolver which will be used for locale resolution when interpolating a message.

Annotations
@Incubating
Since
6.1.1
PROPERTY_NODE_NAME_PROVIDER_CLASSNAMEback to summary
public static final String PROPERTY_NODE_NAME_PROVIDER_CLASSNAME

Property for configuring the property node name provider, allowing to select an implementation of PropertyNodeNameProvider which will be used for property name resolution when creating a property path.

Annotations
@Incubating
Since
6.1.0
SCRIPT_EVALUATOR_FACTORY_CLASSNAMEback to summary
public static final String SCRIPT_EVALUATOR_FACTORY_CLASSNAME

Property for configuring the script evaluator factory, allowing to set up which factory will be used to create ScriptEvaluators for evaluation of script expressions in ScriptAssert and ParameterScriptAssert constraints. A fully qualified name of a class implementing ScriptEvaluatorFactory is expected as a value.

Annotations
@Incubating
Since
6.0.3
SHOW_VALIDATED_VALUE_IN_TRACE_LOGSback to summary
public static final String SHOW_VALIDATED_VALUE_IN_TRACE_LOGS

Property for trace level logs to include values under validation when constraint checks are executed.

Annotations
@Incubating
Since
8.0
TEMPORAL_VALIDATION_TOLERANCEback to summary
public static final String TEMPORAL_VALIDATION_TOLERANCE

Property for configuring temporal validation tolerance, allowing to set the acceptable margin of error when comparing date/time in temporal constraints. In milliseconds.

Annotations
@Incubating
Since
6.0.5

Method Detail

addMappingback to summary
public S addMapping(ConstraintMapping mapping)

Adds the specified ConstraintMapping instance to the configuration. Constraints configured in mapping will be added to the constraints configured via annotations and/or xml.

Parameters
mapping:ConstraintMapping

ConstraintMapping instance containing programmatic configured constraints

Returns:S

this following the chaining method pattern

Exceptions
IllegalArgumentException:
if mapping is null
allowMultipleCascadedValidationOnReturnValuesback to summary
public S allowMultipleCascadedValidationOnReturnValues(boolean allow)

Define whether more than one constraint on a return value may be marked for cascading validation are allowed. The default value is false, i.e. do not allow.

See Section 4.5.5 of the JSR 380 specification, specifically

"One must not mark a method return value for cascaded validation more than once in a line of a class hierarchy.
In other words, overriding methods on sub types (be it sub classes/interfaces or interface implementations)
cannot mark the return value for cascaded validation if the return value has already been marked on the
overridden method of the super type or interface."
Parameters
allow:boolean

flag determining whether validation will allow multiple cascaded validation on return values.

Returns:S

this following the chaining method pattern

Since
5.3
allowOverridingMethodAlterParameterConstraintback to summary
public S allowOverridingMethodAlterParameterConstraint(boolean allow)

Define whether overriding methods that override constraints should throw a ConstraintDefinitionException. The default value is false, i.e. do not allow.

See Section 4.5.5 of the JSR 380 specification, specifically

"In sub types (be it sub classes/interfaces or interface implementations), no parameter constraints may
be declared on overridden or implemented methods, nor may parameters be marked for cascaded validation.
This would pose a strengthening of preconditions to be fulfilled by the caller."
Parameters
allow:boolean

flag determining whether validation will allow overriding to alter parameter constraints.

Returns:S

this following the chaining method pattern

Since
5.3
allowParallelMethodsDefineParameterConstraintsback to summary
public S allowParallelMethodsDefineParameterConstraints(boolean allow)

Define whether parallel methods that define constraints should throw a ConstraintDefinitionException. The default value is false, i.e. do not allow.

See Section 4.5.5 of the JSR 380 specification, specifically

"If a sub type overrides/implements a method originally defined in several parallel types of the hierarchy
(e.g. two interfaces not extending each other, or a class and an interface not implemented by said class),
no parameter constraints may be declared for that method at all nor parameters be marked for cascaded validation.
This again is to avoid an unexpected strengthening of preconditions to be fulfilled by the caller."
Parameters
allow:boolean

flag determining whether validation will allow parameter constraints in parallel hierarchies

Returns:S

this following the chaining method pattern

Since
5.3
beanMetaDataClassNormalizerback to summary
public S beanMetaDataClassNormalizer(BeanMetaDataClassNormalizer beanMetaDataClassNormalizer)
Annotations
@Incubating
constraintExpressionLanguageFeatureLevelback to summary
public S constraintExpressionLanguageFeatureLevel(ExpressionLanguageFeatureLevel expressionLanguageFeatureLevel)

Allows setting the Expression Language feature level for message interpolation of constraint messages.

This is the feature level used for messages hardcoded inside the constraint declaration.

If you are creating custom constraint violations, Expression Language support needs to be explicitly enabled and use the safest feature level by default if enabled.

Parameters
expressionLanguageFeatureLevel:ExpressionLanguageFeatureLevel

the ExpressionLanguageFeatureLevel to be used

Returns:S

this following the chaining method pattern

Annotations
@Incubating
Since
6.2
constraintValidatorPayloadback to summary
public S constraintValidatorPayload(Object constraintValidatorPayload)

Allows to set a payload which will be passed to the constraint validators. If the method is called multiple times, only the payload passed last will be propagated.

Parameters
constraintValidatorPayload:Object

the payload passed to constraint validators

Returns:S

this following the chaining method pattern

Annotations
@Incubating
Since
6.0.8
createConstraintMappingback to summary
public ConstraintMapping createConstraintMapping()

Creates a new constraint mapping which can be used to programmatically configure the constraints for given types. After the mapping has been set up, it must be added to this configuration via addMapping(ConstraintMapping).

Returns:ConstraintMapping

A new constraint mapping.

customViolationExpressionLanguageFeatureLevelback to summary
public S customViolationExpressionLanguageFeatureLevel(ExpressionLanguageFeatureLevel expressionLanguageFeatureLevel)

Allows setting the Expression Language feature level for message interpolation of custom violation messages.

This is the feature level used for messages of custom violations created by the ConstraintValidatorContext.

Parameters
expressionLanguageFeatureLevel:ExpressionLanguageFeatureLevel

the ExpressionLanguageFeatureLevel to be used

Returns:S

this following the chaining method pattern

Annotations
@Incubating
Since
6.2
defaultLocaleback to summary
public S defaultLocale(Locale defaultLocale)

Allows setting the default locale used to interpolate the constraint violation messages.

If not set, defaults to the system locale obtained via Locale#getDefault().

Annotations
@Incubating
Since
6.1.1
enableTraversableResolverResultCacheback to summary
public S enableTraversableResolverResultCache(boolean enabled)

Define whether the per validation call caching of TraversableResolver results is enabled. The default value is true, i.e. the caching is enabled.

This behavior was initially introduced to cache the JPATraversableResolver results but the map lookups it introduces can be counterproductive when the TraversableResolver calls are very fast.

Parameters
enabled:boolean

flag determining whether per validation call caching is enabled for TraversableResolver results.

Returns:S

this following the chaining method pattern

Since
6.0.3
externalClassLoaderback to summary
public S externalClassLoader(ClassLoader externalClassLoader)

Sets the class loader to be used for loading user-provided resources:

  • XML descriptors (META-INF/validation.xml as well as XML constraint mappings)
  • classes specified by name in XML descriptors (e.g. custom message interpolators etc.)
  • the ValidationMessages resource bundle
If no class loader is given, these resources will be obtained through the thread context class loader and as a last fallback through Hibernate Validator's own class loader.
Parameters
externalClassLoader:ClassLoader

The class loader for loading user-provided resources.

Returns:S

this following the chaining method pattern

Since
5.2
failFastback to summary
public S failFast(boolean failFast)

En- or disables the fail fast mode. When fail fast is enabled the validation will stop on the first constraint violation detected.

Parameters
failFast:boolean

true to enable fail fast, false otherwise.

Returns:S

this following the chaining method pattern

getDefaultResourceBundleLocatorback to summary
public ResourceBundleLocator getDefaultResourceBundleLocator()

Returns the ResourceBundleLocator used by the default message interpolator to load user-provided resource bundles. In conformance with the specification this default locator retrieves the bundle "ValidationMessages".

This locator can be used as delegate for custom locators when setting a customized org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator:

HibernateValidatorConfiguration configure =
   Validation.byProvider(HibernateValidator.class).configure();

 ResourceBundleLocator defaultResourceBundleLocator =
   configure.getDefaultBundleLocator();
 ResourceBundleLocator myResourceBundleLocator =
   new MyResourceBundleLocator(defaultResourceBundleLocator);

 configure.messageInterpolator(
   new ResourceBundleMessageInterpolator(myResourceBundleLocator));

Returns:ResourceBundleLocator

The default ResourceBundleLocator. Never null.

getDefaultValueExtractorsback to summary
public Set<ValueExtractor<?>> getDefaultValueExtractors()

Returns the default ValueExtractor implementations as per the specification.

Returns:Set<ValueExtractor<?>>

the default ValueExtractor implementations compliant with the specification

Annotations
@Incubating
Since
6.0
getterPropertySelectionStrategyback to summary
public S getterPropertySelectionStrategy(GetterPropertySelectionStrategy getterPropertySelectionStrategy)

Allows to set a getter property selection strategy defining the rules determining if a method is a getter or not.

Parameters
getterPropertySelectionStrategy:GetterPropertySelectionStrategy

the GetterPropertySelectionStrategy to be used

Returns:S

this following the chaining method pattern

Annotations
@Incubating
Since
6.1.0
localeResolverback to summary
public S localeResolver(LocaleResolver localeResolver)

Allows setting a locale resolver, defining how the locale will be resolved when interpolating the message of a constraint violation.

Parameters
localeResolver:LocaleResolver

the LocaleResolver to be used

Returns:S

this following the chaining method pattern

Annotations
@Incubating
Since
6.1.1
localesback to summary
public S locales(Set<Locale> locales)

Allows setting the list of the locales supported by this ValidatorFactory.

Can be used for advanced locale resolution and/or to force the initialization of the resource bundles at bootstrap.

If not set, defaults to a singleton containing Locale#getDefault().

Annotations
@Incubating
Since
6.1.1
localesback to summary
public default S locales(Locale... locales)

Allows setting the list of the locales supported by this ValidatorFactory.

Can be used for advanced locale resolution and/or to force the initialization of the resource bundles at bootstrap.

If not set, defaults to a singleton containing Locale#getDefault().

Annotations
@Incubating
Since
6.1.1
propertyNodeNameProviderback to summary
public S propertyNodeNameProvider(PropertyNodeNameProvider propertyNodeNameProvider)

Allows to set a property node name provider, defining how the name of a property node will be resolved when constructing a property path as the one returned by ConstraintViolation#getPropertyPath().

Parameters
propertyNodeNameProvider:PropertyNodeNameProvider

the PropertyNodeNameProvider to be used

Returns:S

this following the chaining method pattern

Annotations
@Incubating
Since
6.1.0
scriptEvaluatorFactoryback to summary
public S scriptEvaluatorFactory(ScriptEvaluatorFactory scriptEvaluatorFactory)

Allows to specify a custom ScriptEvaluatorFactory responsible for creating ScriptEvaluators used to evaluate script expressions for ScriptAssert and ParameterScriptAssert constraints.

Parameters
scriptEvaluatorFactory:ScriptEvaluatorFactory

the ScriptEvaluatorFactory to be used

Returns:S

this following the chaining method pattern

Annotations
@Incubating
Since
6.0.3
showValidatedValuesInTraceLogsback to summary
public S showValidatedValuesInTraceLogs(boolean enabled)

Allows setting the logging configuration that would include validated values in trace level logs.

By default, values will not be printed to the logs as they might contain sensitive data.

Parameters
enabled:boolean

flag determining whether validated values will be printed out into trace level logs or not.

Returns:S

this following the chaining method pattern

Annotations
@Incubating
Since
8.0
temporalValidationToleranceback to summary
public S temporalValidationTolerance(Duration temporalValidationTolerance)

Allows to set the acceptable margin of error when comparing date/time in temporal constraints such as Past/PastOrPresent and Future/FutureOrPresent.

Parameters
temporalValidationTolerance:Duration

the acceptable tolerance

Returns:S

this following the chaining method pattern

Annotations
@Incubating
Since
6.0.5