public interface ConstraintViolation<T>
Modifier and Type | Method and Description |
---|---|
ConstraintDescriptor<?> |
getConstraintDescriptor()
Constraint metadata reported to fail.
|
Object |
getInvalidValue()
Returns the value failing to pass the constraint.
|
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() |
String getMessage()
String getMessageTemplate()
T getRootBean()
Validator.validateValue(Class, String, Object, Class[])
Object getLeafBean()
Validator.validateValue(Class, String, Object, Class[])
Path getPropertyPath()
rootBean
.Object getInvalidValue()
Object[]
representing
the method invocation arguments is returned.ConstraintDescriptor<?> getConstraintDescriptor()
Copyright © 2013. All Rights Reserved.