Annotation Interface RequiredString


@Constraint(validatedBy={}) @Documented @Length @NotBlank @Pattern(regexp=".*", flags=DOTALL) @Repeatable(RequiredStrings.class) @ReportAsSingleViolation @Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface RequiredString
Validate that the string is not empty and below a certain size, and report any violation as a single message.
  • Element Details

    • groups

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

      String message
      Default:
      "{com.atlassian.bitbucket.validation.required.string.message}"
    • minimumSize

      @OverridesAttribute(constraint=org.hibernate.validator.constraints.Length.class, name="min") int minimumSize
      Default:
      1
    • payload

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

      @OverridesAttribute(constraint=javax.validation.constraints.Pattern.class, name="regexp") String regexp
      Default:
      ".*"
    • size

      @OverridesAttribute(constraint=org.hibernate.validator.constraints.Length.class, name="max") int size
      Default:
      255