net.sourceforge.stripes.validation
Enum CreditCardTypeConverter.Type
java.lang.Object
java.lang.Enum<CreditCardTypeConverter.Type>
net.sourceforge.stripes.validation.CreditCardTypeConverter.Type
- All Implemented Interfaces:
- Serializable, Comparable<CreditCardTypeConverter.Type>
- Enclosing class:
- CreditCardTypeConverter
public static enum CreditCardTypeConverter.Type
- extends Enum<CreditCardTypeConverter.Type>
AMEX
public static final CreditCardTypeConverter.Type AMEX
DinersClub
public static final CreditCardTypeConverter.Type DinersClub
Discover
public static final CreditCardTypeConverter.Type Discover
enRoute
public static final CreditCardTypeConverter.Type enRoute
JCB
public static final CreditCardTypeConverter.Type JCB
MasterCard
public static final CreditCardTypeConverter.Type MasterCard
VISA
public static final CreditCardTypeConverter.Type VISA
values
public static CreditCardTypeConverter.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CreditCardTypeConverter.Type c : CreditCardTypeConverter.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CreditCardTypeConverter.Type valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
? Copyright 2005-2006, Stripes Development Team.