Annotation Interface AnyNotEmpty


@PlacedAtClass @Target(TYPE) @Retention(RUNTIME) @Repeatable(AnyNotEmpty.AnyNotEmptyList.class) @Documented @Constraint(validatedBy=AnyNotEmptyValidator.class) public @interface AnyNotEmpty
Is valid when at least one of the values of propertyPath is not empty.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Defines several AnyNotEmpty annotations on the same element.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Is the array of propertyPath.
  • Optional Element Summary

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

    • propertyPath

      String[] propertyPath
      Is the array of propertyPath. The validation result is true when one of the values is not empty.
    • message

      String message
      Returns message ID.
      Default:
      "{jp.ecuacion.lib.validation.constraints.AnyNotEmpty.message}"
    • groups

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

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