Top Description Methods
org.hibernate.validator

public Interface HibernateValidatorFactory

extends ValidatorFactory
Known Direct Subinterfaces
org.hibernate.validator.PredefinedScopeHibernateValidatorFactory
Known Direct Implementers
org.hibernate.validator.internal.engine.ValidatorFactoryImpl
Imports
java.time.Duration, jakarta.validation.ValidatorFactory, org.hibernate.validator.constraints.ParameterScriptAssert, .ScriptAssert, org.hibernate.validator.spi.nodenameprovider.PropertyNodeNameProvider, org.hibernate.validator.spi.properties.GetterPropertySelectionStrategy, org.hibernate.validator.spi.scripting.ScriptEvaluator, .ScriptEvaluatorFactory

Provides Hibernate Validator extensions to ValidatorFactory.
Authors
Emmanuel Bernard, Kevin Pollet <[email protected]> (C) 2011 SERLI

Method Summary

Modifier and TypeMethod and Description
public GetterPropertySelectionStrategy

Returns:

the getter property selection strategy of the current ValidatorFactory
getGetterPropertySelectionStrategy
()

Returns the getter property selection strategy defining the rules determining if a method is a getter or not.

public PropertyNodeNameProvider

Returns:

the property node name provider of the current ValidatorFactory
getPropertyNodeNameProvider
()

Returns the property node name provider used to resolve the name of a property node when creating the property path.

public ScriptEvaluatorFactory

Returns:

a ScriptEvaluatorFactory instance
getScriptEvaluatorFactory
()

Returns the factory responsible for creating ScriptEvaluators used to evaluate script expressions of ScriptAssert and ParameterScriptAssert constraints.

public Duration

Returns:

the tolerance
getTemporalValidationTolerance
()

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

public HibernateValidatorContext

Returns:

A context for validator configuration.
usingContext
()

Redeclares jakarta.validation.ValidatorFactory.usingContext.

Returns a context for validator configuration via options from the Bean Validation API as well as specific ones from Hibernate Validator.
Inherited from jakarta.validation.ValidatorFactory:
closegetClockProvidergetConstraintValidatorFactorygetMessageInterpolatorgetParameterNameProvidergetTraversableResolvergetValidatorunwrap

Method Detail

getGetterPropertySelectionStrategyback to summary
public GetterPropertySelectionStrategy getGetterPropertySelectionStrategy()

Returns the getter property selection strategy defining the rules determining if a method is a getter or not.

Returns:GetterPropertySelectionStrategy

the getter property selection strategy of the current ValidatorFactory

Annotations
@Incubating
Since
6.1.0
getPropertyNodeNameProviderback to summary
public PropertyNodeNameProvider getPropertyNodeNameProvider()

Returns the property node name provider used to resolve the name of a property node when creating the property path.

Returns:PropertyNodeNameProvider

the property node name provider of the current ValidatorFactory

Annotations
@Incubating
Since
6.2.1
getScriptEvaluatorFactoryback to summary
public ScriptEvaluatorFactory getScriptEvaluatorFactory()

Returns the factory responsible for creating ScriptEvaluators used to evaluate script expressions of ScriptAssert and ParameterScriptAssert constraints.

Returns:ScriptEvaluatorFactory

a ScriptEvaluatorFactory instance

Annotations
@Incubating
Since
6.0.3
getTemporalValidationToleranceback to summary
public Duration getTemporalValidationTolerance()

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

Returns:Duration

the tolerance

Annotations
@Incubating
Since
6.0.5
usingContextback to summary
public HibernateValidatorContext usingContext()

Redeclares jakarta.validation.ValidatorFactory.usingContext.

Returns a context for validator configuration via options from the Bean Validation API as well as specific ones from Hibernate Validator.

Returns:HibernateValidatorContext

A context for validator configuration.

Annotations
@Override