Package org.eclipse.persistence.jaxb
Class ConstraintViolationWrapper<T>
- java.lang.Object
-
- org.eclipse.persistence.jaxb.ConstraintViolationWrapper<T>
-
public class ConstraintViolationWrapper<T> extends Object
Wrapper overConstraintViolationclass. Required due to optional nature of jakarta.validation bundle.- Since:
- 2.7.0
- Author:
- Dmitry Kornilov
-
-
Constructor Summary
Constructors Constructor Description ConstraintViolationWrapper(jakarta.validation.ConstraintViolation<T> constraintViolation)Creates a new wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.validation.metadata.ConstraintDescriptor<?>getConstraintDescriptor()Object[]getExecutableParameters()ObjectgetExecutableReturnValue()ObjectgetInvalidValue()ObjectgetLeafBean()StringgetMessage()StringgetMessageTemplate()jakarta.validation.PathgetPropertyPath()TgetRootBean()Class<T>getRootBeanClass()jakarta.validation.ConstraintViolation<T>unwrap()Unwraps original object and returns it.
-
-
-
Constructor Detail
-
ConstraintViolationWrapper
public ConstraintViolationWrapper(jakarta.validation.ConstraintViolation<T> constraintViolation)
Creates a new wrapper.- Parameters:
constraintViolation- original object
-
-
Method Detail
-
getMessage
public String getMessage()
- See Also:
ConstraintViolation.getMessage()
-
getMessageTemplate
public String getMessageTemplate()
- See Also:
ConstraintViolation.getMessageTemplate()
-
getRootBean
public T getRootBean()
- See Also:
ConstraintViolation.getRootBean()
-
getRootBeanClass
public Class<T> getRootBeanClass()
- See Also:
ConstraintViolation.getRootBeanClass()
-
getLeafBean
public Object getLeafBean()
- See Also:
ConstraintViolation.getLeafBean()
-
getExecutableParameters
public Object[] getExecutableParameters()
- See Also:
ConstraintViolation.getExecutableParameters()
-
getExecutableReturnValue
public Object getExecutableReturnValue()
- See Also:
ConstraintViolation.getExecutableReturnValue()
-
getPropertyPath
public jakarta.validation.Path getPropertyPath()
- See Also:
ConstraintViolation.getPropertyPath()
-
getInvalidValue
public Object getInvalidValue()
- See Also:
ConstraintViolation.getInvalidValue()
-
getConstraintDescriptor
public jakarta.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()
- See Also:
ConstraintViolation.getConstraintDescriptor()
-
unwrap
public jakarta.validation.ConstraintViolation<T> unwrap()
Unwraps original object and returns it.
-
-