public class ConstraintViolationWrapper<T> extends 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()
ConstraintViolation.getConstraintDescriptor() |
Object[] |
getExecutableParameters()
ConstraintViolation.getExecutableParameters() |
Object |
getExecutableReturnValue()
ConstraintViolation.getExecutableReturnValue() |
Object |
getInvalidValue()
ConstraintViolation.getInvalidValue() |
Object |
getLeafBean()
ConstraintViolation.getLeafBean() |
String |
getMessage()
ConstraintViolation.getMessage() |
String |
getMessageTemplate()
ConstraintViolation.getMessageTemplate() |
javax.validation.Path |
getPropertyPath()
ConstraintViolation.getPropertyPath() |
T |
getRootBean()
ConstraintViolation.getRootBean() |
Class<T> |
getRootBeanClass()
ConstraintViolation.getRootBeanClass() |
javax.validation.ConstraintViolation<T> |
unwrap()
Unwraps original object and returns it.
|
public ConstraintViolationWrapper(javax.validation.ConstraintViolation<T> constraintViolation)
constraintViolation
- original objectpublic String getMessage()
ConstraintViolation.getMessage()
public String getMessageTemplate()
ConstraintViolation.getMessageTemplate()
public T getRootBean()
ConstraintViolation.getRootBean()
public Object getLeafBean()
ConstraintViolation.getLeafBean()
public Object[] getExecutableParameters()
ConstraintViolation.getExecutableParameters()
public Object getExecutableReturnValue()
ConstraintViolation.getExecutableReturnValue()
public javax.validation.Path getPropertyPath()
ConstraintViolation.getPropertyPath()
public Object getInvalidValue()
ConstraintViolation.getInvalidValue()
public javax.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()
ConstraintViolation.getConstraintDescriptor()
public javax.validation.ConstraintViolation<T> unwrap()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference