Annotation Interface ConfigurableMax


@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Constraint(validatedBy=ConfigurableMaxValidator.class) public @interface ConfigurableMax
Custom constraint annotation to validate that a string does not exceed a maximum size, while allowing to configure the maximum value via Studio configuration.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the Studio configuration property to use as the maximum size
  • Optional Element Summary

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

    • value

      String value
      The name of the Studio configuration property to use as the maximum size
      Returns:
      the name of the property to use as the maximum size
    • message

      String message
      Default:
      ""
    • groups

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

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