Interface ValidationRequest


public interface ValidationRequest
A validation request.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a constraint violation for the given property.
    The groups tied to this ValidationRequest
    void
    Pop the nested property path.
    void
    Push the nested property path.
    void
    Throw ConstraintViolationException if there are violations in this 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