Annotation Interface ConditionalNotEmpty


@Constraint(validatedBy=ConditionalNotEmptyValidator.class) @Documented @Retention(RUNTIME) @Target(TYPE) public @interface ConditionalNotEmpty
  • Element Details

    • message

      String message
      Default:
      ""
    • groups

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

      Class<? extends javax.validation.Payload>[] payload
      Default:
      {}
    • fields

      String[] fields
      Returns:
      fields to test for non-emptiness
      Default:
      {}
    • targetField

      String targetField
      Returns:
      field on which the violation will be reported
      Default:
      ""