org.hibernate.validator.constraints
Annotation Type CreditCardNumber


@Documented
@Constraint(validatedBy=CreditCardNumberValidator.class)
@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(value=RUNTIME)
public @interface CreditCardNumber

The annotated element has to represent a valid credit card number. This is the Luhn algorithm implementation which aims to check for user mistake, not credit card validity!

Author:
Hardy Ferentschik, Emmanuel Bernard

Optional Element Summary
 Class<?>[] groups
           
 String message
           
 Class<? extends Payload>[] payload
           
 

message

public abstract String message
Default:
"{org.hibernate.validator.constraints.CreditCardNumber.message}"

groups

public abstract Class<?>[] groups
Default:
{}

payload

public abstract Class<? extends Payload>[] payload
Default:
{}


Copyright © 2007-2010 Red Hat Middleware, LLC. All Rights Reserved