net.sourceforge.stripes.validation
Enum CreditCardTypeConverter.Type

java.lang.Object
  extended by java.lang.Enum<CreditCardTypeConverter.Type>
      extended by 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>


Enum Constant Summary
AMEX
           
DinersClub
           
Discover
           
enRoute
           
JCB
           
MasterCard
           
VISA
           
 
Method Summary
static CreditCardTypeConverter.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CreditCardTypeConverter.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.