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