01: /*
02: * Copyright 2007 Bastian Schenke Licensed under the Apache License, Version 2.0 (the "License");
03: * you may not use this file except in compliance with the License.
04: * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
05: * Unless required by applicable law or agreed to in writing, software distributed under the
06: * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
07: * either express or implied. See the License for the specific language governing permissions
08: * and limitations under the License.
09: */
10: package example.nz.org.take.r2ml.userv.domain;
11:
12: import nz.org.take.r2ml.reference.DefaultNameMapper;
13:
14: public class UServNameMapper extends DefaultNameMapper {
15:
16: /**
17: * Set up the default name mapper for the UServ case study.
18: */
19: public UServNameMapper() {
20: super ();
21: addNames();
22: }
23:
24: private void addNames() {
25: //this.addSlotNames("premium", new String[] { "policy", "premium" });
26: //this.addSlotNames("DriverAirbag", new String[] { "airbag" });
27:
28: addSlotNames("Car", new String[] { "car" });
29: addSlotNames("potentialTheftRating", new String[] { "car",
30: "theftRating" });
31: addSlotNames("potentialOccupantInjuryRating", new String[] {
32: "car", "injuryRating" });
33: addSlotNames("carEligibility", new String[] { "car",
34: "eligibility" });
35: addSlotNames("driverAirbag", new String[] { "car",
36: "driverAirbag" });
37: addSlotNames("sideAirbag", new String[] { "car", "sideAirbag" });
38: addSlotNames("passengerAirbag", new String[] { "car",
39: "passengerAirbag" });
40: addSlotNames("price", new String[] { "car", "price" });
41: addSlotNames("CarModel", new String[] { "carModel" });
42: addSlotNames("", new String[] { "" });
43: addSlotNames("", new String[] { "" });
44: addSlotNames("", new String[] { "" });
45: addSlotNames("", new String[] { "" });
46: addSlotNames("", new String[] { "" });
47: addSlotNames("", new String[] { "" });
48:
49: }
50: }
|