org.hibernate.validator.constraints.br

## Annotation Type CPF

-     @Pattern.List(value={@Pattern(regexp="([0-9]{3}[.]?[0-9]{3}[.]?[0-9]{3}-[0-9]{2})|([0-9]{11})"),@Pattern(regexp="^(?:(?!000\\.?000\\.?000-?00).)*$"),@Pattern(regexp="^(?:(?!111\\.?111\\.?111-?11).)*$"),@Pattern(regexp="^(?:(?!222\\.?222\\.?222-?22).)*$"),@Pattern(regexp="^(?:(?!333\\.?333\\.?333-?33).)*$"),@Pattern(regexp="^(?:(?!444\\.?444\\.?444-?44).)*$"),@Pattern(regexp="^(?:(?!555\\.?555\\.?555-?55).)*$"),@Pattern(regexp="^(?:(?!666\\.?666\\.?666-?66).)*$"),@Pattern(regexp="^(?:(?!777\\.?777\\.?777-?77).)*$"),@Pattern(regexp="^(?:(?!888\\.?888\\.?888-?88).)*$"),@Pattern(regexp="^(?:(?!999\\.?999\\.?999-?99).)*$")})
      @Mod11Check.List(value={@Mod11Check(checkDigitIndex=12,endIndex=10,treatCheck10As=48,ignoreNonDigitCharacters=true),@Mod11Check(checkDigitIndex=13,endIndex=12,treatCheck10As=48,ignoreNonDigitCharacters=true)})
      @Documented
      @Constraint(validatedBy={})
      @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
      @Retention(value=RUNTIME)
      public @interface CPF

  Validates a CPF (Cadastro de Pessoa Física - Brazilian individual taxpayer registry number).
  Author:
    George Gastaldi, Victor Rezende dos Santos

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `Class<?>[]` | `groups`
    `String` | `message`
    `Class<? extends Payload>[]` | `payload`

- - ### Element Detail

    - #### message

          public abstract String message

      Default:
        "{org.hibernate.validator.constraints.br.CPF.message}"

    - #### groups

          public abstract Class<?>[] groups

      Default:
        {}

    - #### payload

          public abstract Class<? extends Payload>[] payload

      Default:
        {}

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved