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

public @Interface CPF

extends Annotation
Annotations
@List:@jakarta.validation.constraints.Pattern(regexp="([0-9]{3}[.]?[0-9]{3}[.]?[0-9]{3}-[0-9]{2})|([0-9]{11})"), @jakarta.validation.constraints.Pattern(regexp="^(?:(?!000\\\\.?000\\\\.?000-?00).)*$"), @jakarta.validation.constraints.Pattern(regexp="^(?:(?!111\\\\.?111\\\\.?111-?11).)*$"), @jakarta.validation.constraints.Pattern(regexp="^(?:(?!222\\\\.?222\\\\.?222-?22).)*$"), @jakarta.validation.constraints.Pattern(regexp="^(?:(?!333\\\\.?333\\\\.?333-?33).)*$"), @jakarta.validation.constraints.Pattern(regexp="^(?:(?!444\\\\.?444\\\\.?444-?44).)*$"), @jakarta.validation.constraints.Pattern(regexp="^(?:(?!555\\\\.?555\\\\.?555-?55).)*$"), @jakarta.validation.constraints.Pattern(regexp="^(?:(?!666\\\\.?666\\\\.?666-?66).)*$"), @jakarta.validation.constraints.Pattern(regexp="^(?:(?!777\\\\.?777\\\\.?777-?77).)*$"), @jakarta.validation.constraints.Pattern(regexp="^(?:(?!888\\\\.?888\\\\.?888-?88).)*$"), @jakarta.validation.constraints.Pattern(regexp="^(?:(?!999\\\\.?999\\\\.?999-?99).)*$")
@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 CPF (Cadastro de Pessoa Física - Brazilian individual taxpayer registry number).
Authors
George Gastaldi, Victor Rezende dos Santos

Nested and Inner Type Summary

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

Defines several @CPF 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 CPF.List

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

Defines several @CPF annotations on the same element.

Method Summary

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

Method Detail

valueback to summary
public CPF[] value()