Top Description Methods
org.hibernate.validator.messageinterpolation

public Interface HibernateMessageInterpolatorContext

extends Context
Known Direct Implementers
org.hibernate.validator.internal.engine.MessageInterpolatorContext
Imports
java.util.Map, jakarta.validation.MessageInterpolator, .Path

Extension to MessageInterpolator.Context which provides functionality specific to Hibernate Validator.
Authors
Gunnar Morling, Guillaume Smet
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public ExpressionLanguageFeatureLevel

Returns:

the level of features enabled for the Expression Language engine
getExpressionLanguageFeatureLevel
()

public Map<String, Object>

Returns:

the expression variables added to this context for EL interpolation
getExpressionVariables
()

public Map<String, Object>

Returns:

the message parameters added to this context for interpolation
getMessageParameters
()

public Path

Returns:

the path to the validated constraint starting from the root bean
getPropertyPath
()

public Class<?>

Returns:

The currently validated root bean type.
getRootBeanType
()

Returns the currently validated root bean type.

Inherited from jakarta.validation.MessageInterpolator.Context:
getConstraintDescriptorgetValidatedValueunwrap

Method Detail

getExpressionLanguageFeatureLevelback to summary
public ExpressionLanguageFeatureLevel getExpressionLanguageFeatureLevel()
Returns:ExpressionLanguageFeatureLevel

the level of features enabled for the Expression Language engine

Since
6.2
getExpressionVariablesback to summary
public Map<String, Object> getExpressionVariables()
Returns:Map<String, Object>

the expression variables added to this context for EL interpolation

Since
5.4.1
getMessageParametersback to summary
public Map<String, Object> getMessageParameters()
Returns:Map<String, Object>

the message parameters added to this context for interpolation

Since
5.4.1
getPropertyPathback to summary
public Path getPropertyPath()
Returns:Path

the path to the validated constraint starting from the root bean

Since
6.1
getRootBeanTypeback to summary
public Class<?> getRootBeanType()

Returns the currently validated root bean type.

Returns:Class<?>

The currently validated root bean type.