Package jakarta.validation
Interface MessageInterpolator.Context
-
- Enclosing interface:
- MessageInterpolator
public static interface MessageInterpolator.ContextInformation related to the interpolation context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConstraintDescriptor<?>getConstraintDescriptor()java.lang.ObjectgetValidatedValue()<T> Tunwrap(java.lang.Class<T> type)Returns an instance of the specified type allowing access to provider-specific APIs.
-
-
-
Method Detail
-
getConstraintDescriptor
ConstraintDescriptor<?> getConstraintDescriptor()
- Returns:
ConstraintDescriptorcorresponding to the constraint being validated
-
getValidatedValue
java.lang.Object getValidatedValue()
- Returns:
- value being validated
-
unwrap
<T> T unwrap(java.lang.Class<T> type)
Returns an instance of the specified type allowing access to provider-specific APIs. If the Jakarta Validation provider implementation does not support the specified class,ValidationExceptionis thrown.- Type Parameters:
T- the type of the object to be returned- Parameters:
type- the class of the object to be returned- Returns:
- an instance of the specified class
- Throws:
ValidationException- if the provider does not support the call- Since:
- 1.1
-
-