Class ConstraintValidatorContextImpl<A extends Annotation,T>

java.lang.Object
de.knightsoftnet.validators.client.impl.ConstraintValidatorContextImpl<A,T>
Type Parameters:
A - the constraint being validated
T - the type of object being validated
All Implemented Interfaces:
javax.validation.ConstraintValidatorContext

public class ConstraintValidatorContextImpl<A extends Annotation,T> extends Object implements javax.validation.ConstraintValidatorContext
GWT safe immutable implementation of ConstraintValidatorContext.

These objects are very short lived.

  • Constructor Details

    • ConstraintValidatorContextImpl

      public ConstraintValidatorContextImpl(org.hibernate.validator.internal.engine.path.PathImpl path, javax.validation.metadata.ConstraintDescriptor<A> descriptor)
      constructor.
      Parameters:
      path - path of the element
      descriptor - constraint descriptor
  • Method Details

    • buildConstraintViolationWithTemplate

      public javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder buildConstraintViolationWithTemplate(String messageTemplate)
      Specified by:
      buildConstraintViolationWithTemplate in interface javax.validation.ConstraintValidatorContext
    • disableDefaultConstraintViolation

      public void disableDefaultConstraintViolation()
      Specified by:
      disableDefaultConstraintViolation in interface javax.validation.ConstraintValidatorContext
    • getDefaultConstraintMessageTemplate

      public String getDefaultConstraintMessageTemplate()
      Specified by:
      getDefaultConstraintMessageTemplate in interface javax.validation.ConstraintValidatorContext
    • getClockProvider

      public javax.validation.ClockProvider getClockProvider()
      Specified by:
      getClockProvider in interface javax.validation.ConstraintValidatorContext
    • getMessageAndPaths

      public Set<MessageAndPath> getMessageAndPaths()
      getter for message and path.
      Returns:
      set which includes message and path
    • getViolations

      public Set<javax.validation.ConstraintViolation<T>> getViolations()
    • unwrap

      public <T> T unwrap(Class<T> ptype)
      Specified by:
      unwrap in interface javax.validation.ConstraintValidatorContext