KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > samples > loanbroker > esb > message > CustomerQuoteRequest


1 /*
2  * $Id: CustomerQuoteRequest.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.samples.loanbroker.esb.message;
12
13 import java.io.Serializable JavaDoc;
14
15 /**
16  * <code>CustomerQuoteRequest</code> is the request sent by the the LoanBroker
17  *
18  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
19  * @version $Revision: 3798 $
20  */

21 public class CustomerQuoteRequest implements Serializable JavaDoc
22 {
23     /**
24      * Serial version
25      */

26     private static final long serialVersionUID = 6365612435470800746L;
27
28     /** The customer that requested the quote */
29     private Customer customer;
30
31     /** The requested loan Amount */
32     private double loanAmount;
33
34     /** the duration of the loan */
35     private int loanDuration;
36
37     public CustomerQuoteRequest(Customer customer, double loanAmount, int loanDuration)
38     {
39         this.customer = customer;
40         this.loanAmount = loanAmount;
41         this.loanDuration = loanDuration;
42     }
43
44     public Customer getCustomer()
45     {
46         return customer;
47     }
48
49     public void setCustomer(Customer customer)
50     {
51         this.customer = customer;
52     }
53
54     public double getLoanAmount()
55     {
56         return loanAmount;
57     }
58
59     public void setLoanAmount(double loanAmount)
60     {
61         this.loanAmount = loanAmount;
62     }
63
64     public int getLoanDuration()
65     {
66         return loanDuration;
67     }
68
69     public void setLoanDuration(int loanDuration)
70     {
71         this.loanDuration = loanDuration;
72     }
73 }
74
Popular Tags