org.apache.commons.validator
Class CreditCardValidator.Visa
java.lang.Object
org.apache.commons.validator.CreditCardValidator.Visa
- CreditCardValidator
- CreditCardValidator.CreditCardType
private class CreditCardValidator.Visa
extends java.lang.Object
Change to support Visa Carte Blue used in France
has been removed - see Bug 35926
boolean | matches(String card) - Returns true if the card number matches this type of credit
card.
|
PREFIX
private static final String PREFIX
matches
public boolean matches(String card)
Returns true if the card number matches this type of credit
card. Note that this method is not responsible
for analyzing the general form of the card number because
CreditCardValidator
performs those checks before
calling this method. It is generally only required to valid the
length and prefix of the number to determine if it's the correct
type.
- matches in interface CreditCardValidator.CreditCardType
card
- The card number, never null.
- true if the number matches.
Copyright (c) 2001-2004 Apache Software Foundation