|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--vo.CreditCardValue
A customer credit card used for reserving flights and making payments. (This is a value object - the value object design pattern is used to facilitante data transfers between objects and minimize the amount of data transferred.)
Field Summary | |
static int |
AMEX
|
static int |
DISC
|
static int |
MC
|
static int |
VISA
|
Constructor Summary | |
CreditCardValue()
Constructor for CreditCardValue. |
Method Summary | |
double |
getBalance()
Returns the balance. |
int |
getExpMonth()
Returns the expMonth. |
int |
getExpYear()
Returns the expYear. |
String |
getNumber()
Returns the number. |
int |
getType()
Returns the type. |
boolean |
isValid()
Performs field level validation of the creditcard * @return boolean - true if the fields have acceptable values, false otherwise |
void |
setBalance(double balance)
Sets the balance. |
void |
setExpMonth(int expMonth)
Sets the expMonth. |
void |
setExpYear(int expYear)
Sets the expYear. |
void |
setNumber(String number)
Sets the number. |
void |
setType(int type)
Sets the type. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int AMEX
public static final int DISC
public static final int MC
public static final int VISA
Constructor Detail |
public CreditCardValue()
Method Detail |
public double getBalance()
public int getExpMonth()
public int getExpYear()
public String getNumber()
public int getType()
public void setBalance(double balance)
balance
- The balance to setpublic void setExpMonth(int expMonth)
expMonth
- The expMonth to setpublic void setExpYear(int expYear)
expYear
- The expYear to setpublic void setNumber(String number)
number
- The number to setpublic void setType(int type)
type
- The type to setpublic boolean isValid()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |