View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.example.loanbroker.messages;
8   
9   import org.mule.example.loanbroker.LocaleMessage;
10  
11  import java.io.Serializable;
12  
13  /**
14   * <code>LoanQuote</code> is a loan quote from a bank
15   */
16  
17  public class LoanQuote implements Serializable
18  {
19      /**
20       * Serial version
21       */
22      private static final long serialVersionUID = -8432932027217141564L;
23  
24      private String bankName;
25      private double interestRate = 0;
26  
27      public LoanQuote()
28      {
29          super();
30      }
31  
32      public String getBankName()
33      {
34          return bankName;
35      }
36  
37      public void setBankName(String 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 toString()
53      {
54          return LocaleMessage.loanQuote(bankName, interestRate);
55      }
56  }