01: /*
02: * $Id: LoanQuote.java 10789 2008-02-12 20:04:43Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
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: * Serial version
24: */
25: private static final long serialVersionUID = -8432932027217141564L;
26:
27: private String bankName;
28: private double interestRate = 0;
29:
30: public LoanQuote() {
31: super ();
32: }
33:
34: public String getBankName() {
35: return bankName;
36: }
37:
38: public void setBankName(String bankName) {
39: this .bankName = bankName;
40: }
41:
42: public double getInterestRate() {
43: return interestRate;
44: }
45:
46: public void setInterestRate(double interestRate) {
47: this .interestRate = interestRate;
48: }
49:
50: public String toString() {
51: return LocaleMessage.loanQuote(bankName, interestRate);
52: }
53: }
|