01: /*
02: * Copyright 2007 Jens Dietrich
03: * Licensed under the Apache License, Version 2.0 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
06: * Unless required by applicable law or agreed to in writing, software distributed under the
07: * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
08: * either express or implied. See the License for the specific language governing permissions
09: * and limitations under the License.
10: */
11:
12: package example.nz.org.take.compiler.userv.domainmodel;
13:
14: /**
15: * Bean class that is part of the example domain model.
16: * http://www.businessrulesforum.com/2005_Product_Derby.pdf
17: * @author <a href="http://www-ist.massey.ac.nz/JBDietrich/">Jens Dietrich</a>
18: */
19:
20: public class Policy {
21: private boolean includesUninsuredMotoristCoverage = false;
22: private boolean includesMedicalCoverage = false;
23:
24: public boolean includesUninsuredMotoristCoverage() {
25: return includesUninsuredMotoristCoverage;
26: }
27:
28: public void setIncludesUninsuredMotoristCoverage(
29: boolean includesUninsuredMotoristCoverage) {
30: this .includesUninsuredMotoristCoverage = includesUninsuredMotoristCoverage;
31: }
32:
33: public boolean includesMedicalCoverage() {
34: return includesMedicalCoverage;
35: }
36:
37: public void setIncludesMedicalCoverage(
38: boolean includesMedicalCoverage) {
39: this.includesMedicalCoverage = includesMedicalCoverage;
40: }
41:
42: }
|