T - the type of the root beanpublic interface ConstraintViolation<T>
| Modifier and Type | Method and Description | 
|---|---|
| ConstraintDescriptor<?> | getConstraintDescriptor()Returns the constraint metadata reported to fail. | 
| java.lang.Object[] | getExecutableParameters()Returns an  Object[]representing the constructor or method invocation
 arguments if theConstraintViolationis returned after validating the
 method or constructor parameters. | 
| java.lang.Object | getExecutableReturnValue()Returns the return value of the constructor or method invocation
 if the  ConstraintViolationis returned after validating the method
 or constructor return value. | 
| java.lang.Object | getInvalidValue()Returns the value failing to pass the constraint. | 
| java.lang.Object | getLeafBean()Returns:
 
     the bean instance the constraint is applied on if it is
     a bean constraint
     the bean instance hosting the property the constraint
     is applied on if it is a property constraint or a container element constraint
     hosted on a property
      nullwhen theConstraintViolationis returned
     after callingValidator.validateValue(Class, String, Object, Class[])the object the method is executed on if it is
     a method parameter, cross-parameter or return value constraint or a
     container element constraint hosted on a method parameter or return valuenullif it is a constructor parameter or
     cross-parameter constraint or a container element constraint hosted on a
     constructor parameter
     the object the constructor has created if it is a
     constructor return value constraint | 
| java.lang.String | getMessage() | 
| java.lang.String | getMessageTemplate() | 
| Path | getPropertyPath() | 
| T | getRootBean()Returns the root bean being validated. | 
| java.lang.Class<T> | getRootBeanClass()Returns the class of the root bean being validated. | 
| <U> U | unwrap(java.lang.Class<U> type)Returns an instance of the specified type allowing access to
 provider-specific APIs. | 
java.lang.String getMessage()
java.lang.String getMessageTemplate()
T getRootBean()
 Returns null when:
 
ConstraintViolation is returned after calling
     Validator.validateValue(Class, String, Object, Class[])ConstraintViolation is returned after validating a
     constructor.nulljava.lang.Class<T> getRootBeanClass()
java.lang.Object getLeafBean()
null when the ConstraintViolation is returned
     after calling Validator.validateValue(Class, String, Object, Class[])
     null if it is a constructor parameter or
     cross-parameter constraint or a container element constraint hosted on a
     constructor parameterjava.lang.Object[] getExecutableParameters()
Object[] representing the constructor or method invocation
 arguments if the ConstraintViolation is returned after validating the
 method or constructor parameters.
 Returns null otherwise.nulljava.lang.Object getExecutableReturnValue()
ConstraintViolation is returned after validating the method
 or constructor return value.
 
 Returns null if the method has no return value.
 Returns null otherwise.
nullPath getPropertyPath()
rootBeanjava.lang.Object getInvalidValue()
Object[] representing
 the method invocation arguments is returned.ConstraintDescriptor<?> getConstraintDescriptor()
<U> U unwrap(java.lang.Class<U> type)
ValidationException is thrown.U - the type of the object to be returnedtype - the class of the object to be returnedValidationException - if the provider does not support the call