|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.field.creditcard.JCB
public class JCB
AmericanExpress credit card Issuer.
Field Summary | |
---|---|
static String |
NAME
Issuer Name |
static int |
VAILDATE_ERROR_NOT_START_WITH_2131_OR_1800
|
static int |
VAILDATE_ERROR_NOT_START_WITH_3
Code to be returned when card number is not start with 3 |
Fields inherited from interface com.jidesoft.field.creditcard.CardIssuer |
---|
VAILDATE_ERROR_WRONG_LENGTH, VAILDATE_SUCCESS |
Constructor Summary | |
---|---|
JCB()
|
Method Summary | |
---|---|
Icon |
getIcon()
Get card issuer's icon |
String |
getName()
Get card issuer's name |
int |
isCardNumberValid(String cardNumber)
Card number length should be 16, Issuer Identifier should be "3xxxx". |
void |
setIcon(Icon icon)
set card issuer's icon |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAME
public static final int VAILDATE_ERROR_NOT_START_WITH_3
public static final int VAILDATE_ERROR_NOT_START_WITH_2131_OR_1800
Constructor Detail |
---|
public JCB()
Method Detail |
---|
public int isCardNumberValid(String cardNumber)
isCardNumberValid
in interface CardIssuer
cardNumber
- number to be checked
public String getName()
getName
in interface CardIssuer
public Icon getIcon()
getIcon
in interface CardIssuer
public void setIcon(Icon icon)
icon
- card issuer's icon
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |