Class SerializeableConstraintValidationImpl<T>

  • Type Parameters:
    T - class type which is handled
    All Implemented Interfaces:
    Serializable, javax.validation.ConstraintViolation<T>

    public class SerializeableConstraintValidationImpl<T>
    extends Object
    implements javax.validation.ConstraintViolation<T>, Serializable
    This is a limited implementation of ConstraintViolation interface which can be serialized and sent from server to client. Only the values are included which are needed for GWT to handle the validation errors in the editor.
    Author:
    Manfred Tremmel
    See Also:
    Serialized Form
    • Constructor Detail

      • SerializeableConstraintValidationImpl

        public SerializeableConstraintValidationImpl()
        default constructor, only added for serialization.
      • SerializeableConstraintValidationImpl

        public SerializeableConstraintValidationImpl​(javax.validation.ConstraintViolation<T> pviolation)
        constructor initializing fields from another ConstraintViolation implementation.
        Parameters:
        pviolation - ConstraintViolation to take values from
    • Method Detail

      • getMessage

        public String getMessage()
        Specified by:
        getMessage in interface javax.validation.ConstraintViolation<T>
      • getMessageTemplate

        public String getMessageTemplate()
        Specified by:
        getMessageTemplate in interface javax.validation.ConstraintViolation<T>
      • getRootBean

        public T getRootBean()
        Specified by:
        getRootBean in interface javax.validation.ConstraintViolation<T>
      • getRootBeanClass

        public Class<T> getRootBeanClass()
        Specified by:
        getRootBeanClass in interface javax.validation.ConstraintViolation<T>
      • getLeafBean

        public Object getLeafBean()
        Specified by:
        getLeafBean in interface javax.validation.ConstraintViolation<T>
      • getInvalidValue

        public Object getInvalidValue()
        Specified by:
        getInvalidValue in interface javax.validation.ConstraintViolation<T>
      • getPropertyPath

        public javax.validation.Path getPropertyPath()
        Specified by:
        getPropertyPath in interface javax.validation.ConstraintViolation<T>
      • getConstraintDescriptor

        public javax.validation.metadata.ConstraintDescriptor getConstraintDescriptor()
        Specified by:
        getConstraintDescriptor in interface javax.validation.ConstraintViolation<T>
      • getExecutableParameters

        public Object[] getExecutableParameters()
        Specified by:
        getExecutableParameters in interface javax.validation.ConstraintViolation<T>
      • getExecutableReturnValue

        public Object getExecutableReturnValue()
        Specified by:
        getExecutableReturnValue in interface javax.validation.ConstraintViolation<T>
      • unwrap

        public <U> U unwrap​(Class<U> ptype)
        Specified by:
        unwrap in interface javax.validation.ConstraintViolation<T>
      • equals

        public final boolean equals​(Object pobject)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object