/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
 * Schema.
 * $Id$
 */

package nz.co.cks.tms.xml;

  //---------------------------------/
 //- Imported classes and packages -/
//---------------------------------/

import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;

/**
 * Class CardInfoType.
 * 
 * @version $Revision$ $Date$
 */
public abstract class CardInfoType implements java.io.Serializable {


      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field _cardName
     */
    private java.lang.String _cardName;

    /**
     * Field _cardNumber
     */
    private java.lang.String _cardNumber;

    /**
     * Field _expiryDate
     */
    private java.lang.String _expiryDate;

    /**
     * Field _cardHolderName
     */
    private java.lang.String _cardHolderName;


      //----------------/
     //- Constructors -/
    //----------------/

    public CardInfoType() {
        super();
    } //-- nz.co.cks.tms.xml.CardInfoType()


      //-----------/
     //- Methods -/
    //-----------/

    /**
     * Method getCardHolderNameReturns the value of field
     * 'cardHolderName'.
     * 
     * @return the value of field 'cardHolderName'.
     */
    public java.lang.String getCardHolderName()
    {
        return this._cardHolderName;
    } //-- java.lang.String getCardHolderName() 

    /**
     * Method getCardNameReturns the value of field 'cardName'.
     * 
     * @return the value of field 'cardName'.
     */
    public java.lang.String getCardName()
    {
        return this._cardName;
    } //-- java.lang.String getCardName() 

    /**
     * Method getCardNumberReturns the value of field 'cardNumber'.
     * 
     * @return the value of field 'cardNumber'.
     */
    public java.lang.String getCardNumber()
    {
        return this._cardNumber;
    } //-- java.lang.String getCardNumber() 

    /**
     * Method getExpiryDateReturns the value of field 'expiryDate'.
     * 
     * @return the value of field 'expiryDate'.
     */
    public java.lang.String getExpiryDate()
    {
        return this._expiryDate;
    } //-- java.lang.String getExpiryDate() 

    /**
     * Method isValid
     */
    public boolean isValid()
    {
        try {
            validate();
        }
        catch (org.exolab.castor.xml.ValidationException vex) {
            return false;
        }
        return true;
    } //-- boolean isValid() 

    /**
     * Method setCardHolderNameSets the value of field
     * 'cardHolderName'.
     * 
     * @param cardHolderName the value of field 'cardHolderName'.
     */
    public void setCardHolderName(java.lang.String cardHolderName)
    {
        this._cardHolderName = cardHolderName;
    } //-- void setCardHolderName(java.lang.String) 

    /**
     * Method setCardNameSets the value of field 'cardName'.
     * 
     * @param cardName the value of field 'cardName'.
     */
    public void setCardName(java.lang.String cardName)
    {
        this._cardName = cardName;
    } //-- void setCardName(java.lang.String) 

    /**
     * Method setCardNumberSets the value of field 'cardNumber'.
     * 
     * @param cardNumber the value of field 'cardNumber'.
     */
    public void setCardNumber(java.lang.String cardNumber)
    {
        this._cardNumber = cardNumber;
    } //-- void setCardNumber(java.lang.String) 

    /**
     * Method setExpiryDateSets the value of field 'expiryDate'.
     * 
     * @param expiryDate the value of field 'expiryDate'.
     */
    public void setExpiryDate(java.lang.String expiryDate)
    {
        this._expiryDate = expiryDate;
    } //-- void setExpiryDate(java.lang.String) 

    /**
     * Method validate
     */
    public void validate()
        throws org.exolab.castor.xml.ValidationException
    {
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
        validator.validate(this);
    } //-- void validate() 

}
