KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Id: LoanQuote.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>LoanQuote</code> is a loan quote from a bank
17  *
18  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
19  * @version $Revision: 3798 $
20  */

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

27     private static final long serialVersionUID = -8432932027217141564L;
28
29     private String JavaDoc bankName;
30     private double interestRate = 0;
31
32     public String JavaDoc getBankName()
33     {
34         return bankName;
35     }
36
37     public void setBankName(String JavaDoc bankName)
38     {
39         this.bankName = bankName;
40     }
41
42     public double getInterestRate()
43     {
44         return interestRate;
45     }
46
47     public void setInterestRate(double interestRate)
48     {
49         this.interestRate = interestRate;
50     }
51
52     public String JavaDoc toString()
53     {
54         return bankName + ", rate: " + interestRate;
55     }
56 }
57
Popular Tags