KickJava   Java API By Example, From Geeks To Geeks.

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


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: MortgageRequest.java 154 6 juin 2006 ofabre $
20  * -------------------------------------------------------------------------
21  */

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

30 public class MortgageRequest {
31
32     private String JavaDoc firstName;
33
34     private String JavaDoc lastName;
35
36     private String JavaDoc address;
37
38     private float salary;
39
40     private float propertyTaxes;
41
42     private float insurance;
43
44     private float autoPayment;
45
46     private float creditCards;
47
48     private float otherPayments;
49
50     public MortgageRequest() {
51         super();
52     }
53
54     public MortgageRequest(String JavaDoc firstName, String JavaDoc lastName, String JavaDoc address,
55             float salary, float propertyTaxes, float insurance,
56             float autoPayment, float creditCards, float otherPayments) {
57         super();
58         this.firstName = firstName;
59         this.lastName = lastName;
60         this.address = address;
61         this.salary = salary;
62         this.propertyTaxes = propertyTaxes;
63         this.insurance = insurance;
64         this.autoPayment = autoPayment;
65         this.creditCards = creditCards;
66         this.otherPayments = otherPayments;
67     }
68
69     public String JavaDoc getAddress() {
70         return address;
71     }
72
73     public void setAddress(String JavaDoc address) {
74         this.address = address;
75     }
76
77     public float getAutoPayment() {
78         return autoPayment;
79     }
80
81     public void setAutoPayment(float autoPayment) {
82         this.autoPayment = autoPayment;
83     }
84
85     public float getCreditCards() {
86         return creditCards;
87     }
88
89     public void setCreditCards(float creditCards) {
90         this.creditCards = creditCards;
91     }
92
93     public String JavaDoc getFirstName() {
94         return firstName;
95     }
96
97     public void setFirstName(String JavaDoc firstName) {
98         this.firstName = firstName;
99     }
100
101     public float getInsurance() {
102         return insurance;
103     }
104
105     public void setInsurance(float insurance) {
106         this.insurance = insurance;
107     }
108
109     public String JavaDoc getLastName() {
110         return lastName;
111     }
112
113     public void setLastName(String JavaDoc lastName) {
114         this.lastName = lastName;
115     }
116
117     public float getOtherPayments() {
118         return otherPayments;
119     }
120
121     public void setOtherPayments(float otherPayments) {
122         this.otherPayments = otherPayments;
123     }
124
125     public float getPropertyTaxes() {
126         return propertyTaxes;
127     }
128
129     public void setPropertyTaxes(float propertyTaxes) {
130         this.propertyTaxes = propertyTaxes;
131     }
132
133     public float getSalary() {
134         return salary;
135     }
136
137     public void setSalary(float salary) {
138         this.salary = salary;
139     }
140     
141     /**
142      * Overide toString to build a string from MortgageResponse fields
143      * Pattern : fields separated by !!
144      */

145     @Override JavaDoc
146     public String JavaDoc toString() {
147         return firstName+"!!"+lastName+"!!"+address+"!!"+salary+"!!"+propertyTaxes+"!!"+insurance+"!!"+autoPayment+"!!"+creditCards+"!!"+otherPayments;
148     }
149
150 }
151
Popular Tags