Annotation Type CNPJ
@Pattern(regexp="([0-9]{2}[.]?[0-9]{3}[.]?[0-9]{3}[/]?[0-9]{4}[-]?[0-9]{2})")
@ReportAsSingleViolation
@Documented
@Constraint(validatedBy={})
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(List.class)
public @interface CNPJ
Validates a CNPJ (Cadastro de Pessoa JurÃdica - Brazilian corporate tax payer registry number).
- Author:
- George Gastaldi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Defines several@CNPJ
annotations on the same element. -
Optional Element Summary
Optional Elements