Annotation Type I18nStringSize


@Documented
@Constraint(validatedBy=I18nStringSizeValidator.class)
@Target({FIELD,TYPE_USE})
@Retention(RUNTIME)
public @interface I18nStringSize
Annotation for i18n String (de/en Strings).
Author:
Daniel Katzberg
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static interface  I18nStringSize.List
    Defines several I18nStringSize annotations on the same element.
  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    Class<?>[] groups
    This contains groups.
    int max
    Get the max length of the I18nString.
    String message
    Defines the default error message.
    int min
    Get the min length of the I18nString.
    Class<? extends javax.validation.Payload>[] payload
    This method contains the payload.
  • Element Details

    • message

      String message
      Defines the default error message.
      Default:
      "eu.dzhw.fdz.metadatamanagement.domain.validation.i18nstringsize.message"
    • groups

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

      Class<? extends javax.validation.Payload>[] payload
      This method contains the payload.
      Default:
      {}
    • max

      int max
      Get the max length of the I18nString.
      Returns:
      size the element must be equal or lower to.
      Default:
      2147483647
    • min

      int min
      Get the min length of the I18nString.
      Returns:
      size the element must be equal or higher to.
      Default:
      0