public class ConstraintViolationImpl<T> extends Object implements ConstraintViolation<T>, Serializable
| Constructor and Description |
|---|
ConstraintViolationImpl(String messageTemplate,
String interpolatedMessage,
Class<T> rootBeanClass,
T rootBean,
Object leafBeanInstance,
Object value,
Path propertyPath,
ConstraintDescriptor<?> constraintDescriptor,
ElementType elementType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ConstraintDescriptor<?> |
getConstraintDescriptor()
Constraint metadata reported to fail.
|
Object |
getInvalidValue() |
Object |
getLeafBean()
If a bean constraint, the bean instance the constraint is applied on
If a property constraint, the bean instance hosting the property the
constraint is applied on
|
String |
getMessage() |
String |
getMessageTemplate() |
Path |
getPropertyPath() |
T |
getRootBean() |
Class<T> |
getRootBeanClass() |
int |
hashCode() |
String |
toString() |
public ConstraintViolationImpl(String messageTemplate, String interpolatedMessage, Class<T> rootBeanClass, T rootBean, Object leafBeanInstance, Object value, Path propertyPath, ConstraintDescriptor<?> constraintDescriptor, ElementType elementType)
public final String getMessage()
getMessage in interface ConstraintViolation<T>public final String getMessageTemplate()
getMessageTemplate in interface ConstraintViolation<T>public final T getRootBean()
getRootBean in interface ConstraintViolation<T>Validator.validateValue(Class, String, Object, Class[])public final Class<T> getRootBeanClass()
getRootBeanClass in interface ConstraintViolation<T>public final Object getLeafBean()
ConstraintViolationgetLeafBean in interface ConstraintViolation<T>Validator.validateValue(Class, String, Object, Class[])public final Object getInvalidValue()
getInvalidValue in interface ConstraintViolation<T>public final Path getPropertyPath()
getPropertyPath in interface ConstraintViolation<T>rootBean.public final ConstraintDescriptor<?> getConstraintDescriptor()
ConstraintViolationgetConstraintDescriptor in interface ConstraintViolation<T>Copyright © 2012 JBoss by Red Hat. All Rights Reserved.