Class ConstraintViolationWrapper<T>

java.lang.Object
org.eclipse.persistence.jaxb.ConstraintViolationWrapper<T>

public class ConstraintViolationWrapper<T> extends Object
Wrapper over ConstraintViolation class. Required due to optional nature of jakarta.validation bundle.
Author:
Dmitry Kornilov
  • Constructor Details

    • ConstraintViolationWrapper

      public ConstraintViolationWrapper(jakarta.validation.ConstraintViolation<T> constraintViolation)
      Creates a new wrapper.
      Parameters:
      constraintViolation - original object
  • Method Details

    • 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.