KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > demo > mortgage > workflow > orchestration > MortgageResponse


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2006 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: MortgageResponse.java 154 7 juin 2006 ofabre $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.demo.mortgage.workflow.orchestration;
23
24 /**
25  * Bo handling mortgage response data
26  *
27  * @author ofabre - EBM Websourcing
28  *
29  */

30 public class MortgageResponse {
31
32     private String JavaDoc firstName;
33
34     private String JavaDoc lastName;
35
36     private float mortgageRate;
37
38     public MortgageResponse() {
39         super();
40     }
41
42     public MortgageResponse(String JavaDoc firstName, String JavaDoc lastName,
43             float mortgageRate) {
44         super();
45         this.firstName = firstName;
46         this.lastName = lastName;
47         this.mortgageRate = mortgageRate;
48     }
49
50     public String JavaDoc getFirstName() {
51         return firstName;
52     }
53
54     public void setFirstName(String JavaDoc firstName) {
55         this.firstName = firstName;
56     }
57
58     public String JavaDoc getLastName() {
59         return lastName;
60     }
61
62     public void setLastName(String JavaDoc lastName) {
63         this.lastName = lastName;
64     }
65
66     public float getMortgageRate() {
67         return mortgageRate;
68     }
69
70     public void setMortgageRate(float mortgageRate) {
71         this.mortgageRate = mortgageRate;
72     }
73
74     /**
75      * Overide toString to build a string from MortgageResponse fields
76      * Pattern : fields separated by !!
77      */

78     @Override JavaDoc
79     public String JavaDoc toString() {
80         return firstName+"!!"+lastName+"!!"+mortgageRate;
81     }
82     
83     
84
85 }
86
Popular Tags