1 22 package org.objectweb.petals.demo.mortgage.workflow.orchestration; 23 24 30 public class MortgageRequest { 31 32 private String firstName; 33 34 private String lastName; 35 36 private String 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 firstName, String lastName, String 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 getAddress() { 70 return address; 71 } 72 73 public void setAddress(String 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 getFirstName() { 94 return firstName; 95 } 96 97 public void setFirstName(String 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 getLastName() { 110 return lastName; 111 } 112 113 public void setLastName(String 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 145 @Override 146 public String toString() { 147 return firstName+"!!"+lastName+"!!"+address+"!!"+salary+"!!"+propertyTaxes+"!!"+insurance+"!!"+autoPayment+"!!"+creditCards+"!!"+otherPayments; 148 } 149 150 } 151 | Popular Tags |