public class MessageInterpolatorContext extends Object implements HibernateMessageInterpolatorContext
Constructor and Description |
---|
MessageInterpolatorContext(ConstraintDescriptor<?> constraintDescriptor,
Object validatedValue,
Class<?> rootBeanType,
Map<String,Object> messageParameters) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ConstraintDescriptor<?> |
getConstraintDescriptor() |
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 <T> T unwrap(Class<T> type)
MessageInterpolator.Context
ValidationException
is thrown.unwrap
in interface MessageInterpolator.Context
type
- the class of the object to be returnedCopyright © 2017 JBoss by Red Hat. All rights reserved.