@Pattern(regexp="([0-9]{2}[.]?[0-9]{3}[.]?[0-9]{3}[/]?[0-9]{4}[-]?[0-9]{2})") @Mod11Check.List(value={@Mod11Check(threshold=9,endIndex=14,checkDigitIndex=16,ignoreNonDigitCharacters=true),@Mod11Check(threshold=9,endIndex=16,checkDigitIndex=17,ignoreNonDigitCharacters=true)}) @Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) public @interface CNPJ
Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved