Annotation Type TituloEleitoral


@Pattern(regexp="[0-9]{12}") @Mod11Check(threshold=9,endIndex=7,checkDigitIndex=10) @Mod11Check(threshold=9,startIndex=8,endIndex=10,checkDigitIndex=11) @ReportAsSingleViolation @Documented @Constraint(validatedBy={}) @SupportedValidationTarget(ANNOTATED_ELEMENT) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) public @interface TituloEleitoral
Validates a Título Eleitoral (Brazilian Voter ID card number).
Author:
George Gastaldi
  • Nested Class Summary

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

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

    • message

      String message
      Default:
      "{org.hibernate.validator.constraints.br.TituloEleitoral.message}"
    • groups

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

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