public class ConstraintViolationWrapper<T> extends Object
ConstraintViolation
class. Required due to optional nature of jakarta.validation bundle.Constructor and Description |
---|
ConstraintViolationWrapper(jakarta.validation.ConstraintViolation<T> constraintViolation)
Creates a new wrapper.
|
Modifier and Type | Method and Description |
---|---|
jakarta.validation.metadata.ConstraintDescriptor<?> |
getConstraintDescriptor() |
Object[] |
getExecutableParameters() |
Object |
getExecutableReturnValue() |
Object |
getInvalidValue() |
Object |
getLeafBean() |
String |
getMessage() |
String |
getMessageTemplate() |
jakarta.validation.Path |
getPropertyPath() |
T |
getRootBean() |
Class<T> |
getRootBeanClass() |
jakarta.validation.ConstraintViolation<T> |
unwrap()
Unwraps original object and returns it.
|
public ConstraintViolationWrapper(jakarta.validation.ConstraintViolation<T> constraintViolation)
constraintViolation
- original objectpublic String getMessage()
ConstraintViolation.getMessage()
public String getMessageTemplate()
ConstraintViolation.getMessageTemplate()
public T getRootBean()
ConstraintViolation.getRootBean()
public Class<T> getRootBeanClass()
ConstraintViolation.getRootBeanClass()
public Object getLeafBean()
ConstraintViolation.getLeafBean()
public Object[] getExecutableParameters()
ConstraintViolation.getExecutableParameters()
public Object getExecutableReturnValue()
ConstraintViolation.getExecutableReturnValue()
public jakarta.validation.Path getPropertyPath()
ConstraintViolation.getPropertyPath()
public Object getInvalidValue()
ConstraintViolation.getInvalidValue()
public jakarta.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()
ConstraintViolation.getConstraintDescriptor()
public jakarta.validation.ConstraintViolation<T> unwrap()
Copyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.