Module org.eclipse.persistence.moxy
Package org.eclipse.persistence.jaxb
Class ConstraintViolationWrapper<T>
- java.lang.Object
-
- org.eclipse.persistence.jaxb.ConstraintViolationWrapper<T>
-
public class ConstraintViolationWrapper<T> extends Object
Wrapper overConstraintViolation
class. 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()
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.
-
-
-
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.
-
-