Package org.eclipse.persistence.jaxb
Class ConstraintViolationWrapper<T>
- java.lang.Object
-
- org.eclipse.persistence.jaxb.ConstraintViolationWrapper<T>
-
public class ConstraintViolationWrapper<T> extends java.lang.Object
Wrapper overConstraintViolation
class. Required due to optional nature of javax.validation bundle.- Since:
- 2.7.0
- Author:
- Dmitry Kornilov
-
-
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()
{@see ConstraintViolation#getConstraintDescriptor}java.lang.Object[]
getExecutableParameters()
{@see ConstraintViolation#getExecutableParameters}java.lang.Object
getExecutableReturnValue()
{@see ConstraintViolation#getExecutableReturnValue}java.lang.Object
getInvalidValue()
{@see ConstraintViolation#getInvalidValue}java.lang.Object
getLeafBean()
{@see ConstraintViolation#getLeafBean}java.lang.String
getMessage()
{@see ConstraintViolation#getMessage}java.lang.String
getMessageTemplate()
{@see ConstraintViolation#getMessageTemplate}javax.validation.Path
getPropertyPath()
{@see ConstraintViolation#getPropertyPath}T
getRootBean()
{@see ConstraintViolation#getRootBean}java.lang.Class<T>
getRootBeanClass()
{@see ConstraintViolation#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 ConstraintViolation#getMessage}
-
getMessageTemplate
public java.lang.String getMessageTemplate()
{@see ConstraintViolation#getMessageTemplate}
-
getRootBean
public T getRootBean()
{@see ConstraintViolation#getRootBean}
-
getRootBeanClass
public java.lang.Class<T> getRootBeanClass()
{@see ConstraintViolation#getRootBeanClass}
-
getLeafBean
public java.lang.Object getLeafBean()
{@see ConstraintViolation#getLeafBean}
-
getExecutableParameters
public java.lang.Object[] getExecutableParameters()
{@see ConstraintViolation#getExecutableParameters}
-
getExecutableReturnValue
public java.lang.Object getExecutableReturnValue()
{@see ConstraintViolation#getExecutableReturnValue}
-
getPropertyPath
public javax.validation.Path getPropertyPath()
{@see ConstraintViolation#getPropertyPath}
-
getInvalidValue
public java.lang.Object getInvalidValue()
{@see ConstraintViolation#getInvalidValue}
-
getConstraintDescriptor
public javax.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()
{@see ConstraintViolation#getConstraintDescriptor}
-
unwrap
public javax.validation.ConstraintViolation<T> unwrap()
Unwraps original object and returns it.
-
-