Interface HibernateMessageInterpolatorContext
-
- All Superinterfaces:
MessageInterpolator.Context
- All Known Implementing Classes:
MessageInterpolatorContext
public interface HibernateMessageInterpolatorContext extends MessageInterpolator.Context
Extension toMessageInterpolator.Contextwhich provides functionality specific to Hibernate Validator.- Since:
- 5.0
- Author:
- Gunnar Morling, Guillaume Smet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressionLanguageFeatureLevelgetExpressionLanguageFeatureLevel()Map<String,Object>getExpressionVariables()Map<String,Object>getMessageParameters()PathgetPropertyPath()Class<?>getRootBeanType()Returns the currently validated root bean type.-
Methods inherited from interface jakarta.validation.MessageInterpolator.Context
getConstraintDescriptor, getValidatedValue, unwrap
-
-
-
-
Method Detail
-
getRootBeanType
Class<?> getRootBeanType()
Returns the currently validated root bean type.- Returns:
- The currently validated root bean type.
-
getMessageParameters
Map<String,Object> getMessageParameters()
- Returns:
- the message parameters added to this context for interpolation
- Since:
- 5.4.1
-
getExpressionVariables
Map<String,Object> getExpressionVariables()
- Returns:
- the expression variables added to this context for EL interpolation
- Since:
- 5.4.1
-
getPropertyPath
Path getPropertyPath()
- Returns:
- the path to the validated constraint starting from the root bean
- Since:
- 6.1
-
getExpressionLanguageFeatureLevel
ExpressionLanguageFeatureLevel getExpressionLanguageFeatureLevel()
- Returns:
- the level of features enabled for the Expression Language engine
- Since:
- 6.2
-
-