Top Description Inners Methods
org.hibernate.validator.constraints.br

public @Interface CNPJ

extends Annotation
Annotations
@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
Static Imports
java.lang.annotation.ElementType.ANNOTATION_TYPE, .ElementType.CONSTRUCTOR, .ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE_USE, .RetentionPolicy.RUNTIME

Validates a CNPJ (Cadastro de Pessoa Jurídica - Brazilian corporate tax payer registry number).
Author
George Gastaldi

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
CNPJ.List

Defines several @CNPJ annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public String
public Class<? extends Payload>[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupsback to summary
public Class<?>[] groups()
messageback to summary
public String message()
payloadback to summary
public Class<? extends Payload>[] payload()
org.hibernate.validator.constraints.br back to summary

public @Interface CNPJ.List

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Documented

Defines several @CNPJ annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public CNPJ[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public CNPJ[] value()