Class ConstraintViolationWrapper<T>


  • public class ConstraintViolationWrapper<T>
    extends java.lang.Object
    Wrapper over ConstraintViolation class. Required due to optional nature of javax.validation bundle.
    Author:
    Dmitry Kornilov
    Since:
    2.7.0
    • 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.