01: package org.acme.insurance;
02:
03: /*
04: * Copyright 2005 JBoss Inc
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: /**
20: * This represents obviously a driver who is applying for an insurance Policy.
21: * @author Michael Neale
22: *
23: */
24: public class Driver {
25:
26: private String name = "Mr Joe Blogs";
27: private Integer age = new Integer(30);
28: private Integer priorClaims = new Integer(0);
29: private String locationRiskProfile = "LOW";
30:
31: public Integer getAge() {
32: return age;
33: }
34:
35: public void setAge(Integer age) {
36: this .age = age;
37: }
38:
39: public String getLocationRiskProfile() {
40: return locationRiskProfile;
41: }
42:
43: public void setLocationRiskProfile(String locationRiskProfile) {
44: this .locationRiskProfile = locationRiskProfile;
45: }
46:
47: public String getName() {
48: return name;
49: }
50:
51: public void setName(String name) {
52: this .name = name;
53: }
54:
55: public Integer getPriorClaims() {
56: return priorClaims;
57: }
58:
59: public void setPriorClaims(Integer priorClaims) {
60: this.priorClaims = priorClaims;
61: }
62:
63: }
|