org.apache.taglibs.rdc
Class CreditCardData

java.lang.Object
  extended by org.apache.taglibs.rdc.CreditCardData
All Implemented Interfaces:
java.io.Serializable

public class CreditCardData
extends java.lang.Object
implements java.io.Serializable

The public data model of the credit card info composite.

Author:
Rahul Akolkar
See Also:
Serialized Form

Constructor Summary
CreditCardData()
           
 
Method Summary
 java.util.Date getExpiry()
          Gets the expiry date
 java.lang.String getNumber()
          Get the card number as a String
 java.lang.String getSecurityCode()
          Gets the security code
 java.lang.String getType()
          Get the type of credit card
 void setExpiry(java.util.Date expiry)
          Sets the expiry date
 void setNumber(java.lang.String number)
          Set the card number as a String
 void setSecurityCode(java.lang.String securityCode)
          Sets the security code
 void setType(java.lang.String type)
          Set the type of credit card
 java.lang.String toString()
          A serialized version of CreditCardData object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreditCardData

public CreditCardData()
Method Detail

getType

public java.lang.String getType()
Get the type of credit card

Returns:
the card type

setType

public void setType(java.lang.String type)
Set the type of credit card

Parameters:
type - The card type.

getNumber

public java.lang.String getNumber()
Get the card number as a String

Returns:
the card number

setNumber

public void setNumber(java.lang.String number)
Set the card number as a String

Parameters:
number - The card number.

getExpiry

public java.util.Date getExpiry()
Gets the expiry date

Returns:
Returns the expiry date.

setExpiry

public void setExpiry(java.util.Date expiry)
Sets the expiry date

Parameters:
expiry - The expiry to set.

getSecurityCode

public java.lang.String getSecurityCode()
Gets the security code

Returns:
Returns the securityCode.

setSecurityCode

public void setSecurityCode(java.lang.String securityCode)
Sets the security code

Parameters:
securityCode - The securityCode to set.

toString

public java.lang.String toString()
A serialized version of CreditCardData object

Overrides:
toString in class java.lang.Object


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.