Annotation Interface SelfValidates


@Documented @Constraint(validatedBy=SelfValidatingValidator.class) @Inherited @Target(TYPE) @Retention(RUNTIME) public @interface SelfValidates
Validation constraint that when applied to classes that implement the SelfValidating interface allows custom validation by the class itself via SelfValidating.checkValid().
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
     
    Class<? extends jakarta.validation.Payload>[]
     
  • Element Details

    • message

      String message
      Default:
      "{org.dellroad.stuff.validation.SelfValidates.message}"
    • groups

      Class<?>[] groups
      Default:
      {}
    • payload

      Class<? extends jakarta.validation.Payload>[] payload
      Default:
      {}