View Javadoc

1   /*
2    * $Id: LoanQuote.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.example.loanbroker.messages;
12  
13  import org.mule.example.loanbroker.LocaleMessage;
14  
15  import java.io.Serializable;
16  
17  /**
18   * <code>LoanQuote</code> is a loan quote from a bank
19   */
20  
21  public class LoanQuote implements Serializable
22  {
23      /**
24       * Serial version
25       */
26      private static final long serialVersionUID = -8432932027217141564L;
27  
28      private String bankName;
29      private double interestRate = 0;
30  
31      public LoanQuote()
32      {
33          super();
34      }
35  
36      public String getBankName()
37      {
38          return bankName;
39      }
40  
41      public void setBankName(String bankName)
42      {
43          this.bankName = bankName;
44      }
45  
46      public double getInterestRate()
47      {
48          return interestRate;
49      }
50  
51      public void setInterestRate(double interestRate)
52      {
53          this.interestRate = interestRate;
54      }
55  
56      public String toString()
57      {
58          return LocaleMessage.loanQuote(bankName, interestRate);
59      }
60  }