public class ConstraintViolationWrapper<T>
extends java.lang.Object
ConstraintViolation class. Required due to optional nature of javax.validation bundle.| Constructor and Description |
|---|
ConstraintViolationWrapper(javax.validation.ConstraintViolation<T> constraintViolation)
Creates a new wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
javax.validation.metadata.ConstraintDescriptor<?> |
getConstraintDescriptor() |
java.lang.Object[] |
getExecutableParameters() |
java.lang.Object |
getExecutableReturnValue() |
java.lang.Object |
getInvalidValue() |
java.lang.Object |
getLeafBean() |
java.lang.String |
getMessage() |
java.lang.String |
getMessageTemplate() |
javax.validation.Path |
getPropertyPath() |
T |
getRootBean() |
java.lang.Class<T> |
getRootBeanClass() |
javax.validation.ConstraintViolation<T> |
unwrap()
Unwraps original object and returns it.
|
public ConstraintViolationWrapper(javax.validation.ConstraintViolation<T> constraintViolation)
constraintViolation - original objectpublic java.lang.String getMessage()
ConstraintViolation.getMessage()public java.lang.String getMessageTemplate()
ConstraintViolation.getMessageTemplate()public T getRootBean()
ConstraintViolation.getRootBean()public java.lang.Class<T> getRootBeanClass()
ConstraintViolation.getRootBeanClass()public java.lang.Object getLeafBean()
ConstraintViolation.getLeafBean()public java.lang.Object[] getExecutableParameters()
ConstraintViolation.getExecutableParameters()public java.lang.Object getExecutableReturnValue()
ConstraintViolation.getExecutableReturnValue()public javax.validation.Path getPropertyPath()
ConstraintViolation.getPropertyPath()public java.lang.Object getInvalidValue()
ConstraintViolation.getInvalidValue()public javax.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()
ConstraintViolation.getConstraintDescriptor()public javax.validation.ConstraintViolation<T> unwrap()