Interface ValidationRequest


public interface ValidationRequest
A validation request.
  • Method Details

    • groups

      List<Class<?>> groups()
      The groups tied to this ValidationRequest
    • addViolation

      void addViolation(ValidationContext.Message message, String propertyName)
      Add a constraint violation for the given property.
      Parameters:
      message - The message
      propertyName - The property that failed the constraint
    • pushPath

      void pushPath(String path)
      Push the nested property path.
    • popPath

      void popPath()
      Pop the nested property path.
    • throwWithViolations

      void throwWithViolations() throws ConstraintViolationException
      Throw ConstraintViolationException if there are violations in this request.
      Throws:
      ConstraintViolationException
    • violations

      Set<ConstraintViolation> violations()
      Return the violations
    • hasViolations

      boolean hasViolations()
      return true if there are violations in this request.