Annotation Interface AllEmptyOrAllNotEmpty


@PlacedAtClass @Target(TYPE) @Retention(RUNTIME) @Repeatable(AllEmptyOrAllNotEmpty.AllEmptyOrAllNotEmptyList.class) @Documented @Constraint(validatedBy=AllEmptyOrAllNotEmptyValidator.class) public @interface AllEmptyOrAllNotEmpty
Is valid when all of the values of propertyPath is empty or not empty.
  • Element Details

    • propertyPath

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

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

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

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