Class ConstraintViolationWrapper<T>


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

      • ConstraintViolationWrapper

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

      • getMessage

        public String getMessage()
        {@see ConstraintViolation#getMessage}
      • getMessageTemplate

        public String getMessageTemplate()
        {@see ConstraintViolation#getMessageTemplate}
      • getRootBean

        public T getRootBean()
        {@see ConstraintViolation#getRootBean}
      • getRootBeanClass

        public Class<T> getRootBeanClass()
        {@see ConstraintViolation#getRootBeanClass}
      • getLeafBean

        public Object getLeafBean()
        {@see ConstraintViolation#getLeafBean}
      • getExecutableParameters

        public Object[] getExecutableParameters()
        {@see ConstraintViolation#getExecutableParameters}
      • getExecutableReturnValue

        public Object getExecutableReturnValue()
        {@see ConstraintViolation#getExecutableReturnValue}
      • getPropertyPath

        public javax.validation.Path getPropertyPath()
        {@see ConstraintViolation#getPropertyPath}
      • getInvalidValue

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