public class MessageInterpolatorContext extends Object implements HibernateMessageInterpolatorContext
Constructor and Description |
---|
MessageInterpolatorContext(ConstraintDescriptor<?> constraintDescriptor,
Object validatedValue,
Class<?> rootBeanType,
Map<String,Object> messageParameters,
Map<String,Object> expressionVariables) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ConstraintDescriptor<?> |
getConstraintDescriptor() |
Map<String,Object> |
getExpressionVariables() |
Map<String,Object> |
getMessageParameters() |
Class<?> |
getRootBeanType()
Returns the currently validated root bean type.
|
Object |
getValidatedValue() |
int |
hashCode() |
String |
toString() |
<T> T |
unwrap(Class<T> type)
Returns an instance of the specified type allowing access to
provider-specific APIs.
|
public ConstraintDescriptor<?> getConstraintDescriptor()
getConstraintDescriptor
in interface MessageInterpolator.Context
ConstraintDescriptor
corresponding to the constraint being
validatedpublic Object getValidatedValue()
getValidatedValue
in interface MessageInterpolator.Context
public Class<?> getRootBeanType()
HibernateMessageInterpolatorContext
getRootBeanType
in interface HibernateMessageInterpolatorContext
public Map<String,Object> getMessageParameters()
getMessageParameters
in interface HibernateMessageInterpolatorContext
public Map<String,Object> getExpressionVariables()
getExpressionVariables
in interface HibernateMessageInterpolatorContext
public <T> T unwrap(Class<T> type)
MessageInterpolator.Context
ValidationException
is thrown.unwrap
in interface MessageInterpolator.Context
T
- the type of the object to be returnedtype
- the class of the object to be returnedCopyright © 2020 JBoss by Red Hat. All rights reserved.