3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.database
.update
.v30_31
;
12 import java
.util
.ArrayList
;
13 import java
.util
.List
;
14 import java
.util
.UUID
;
16 import org
.apache
.log4j
.Logger
;
18 import eu
.etaxonomy
.cdm
.database
.update
.ITermUpdater
;
19 import eu
.etaxonomy
.cdm
.database
.update
.ITermUpdaterStep
;
20 import eu
.etaxonomy
.cdm
.database
.update
.TermRepresentationUpdater
;
21 import eu
.etaxonomy
.cdm
.database
.update
.TermUpdaterBase
;
22 import eu
.etaxonomy
.cdm
.database
.update
.v31_33
.TermUpdater_31_33
;
23 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
30 public class TermUpdater_314_315
extends TermUpdaterBase
implements ITermUpdater
{
31 @SuppressWarnings("unused")
32 private static final Logger logger
= Logger
.getLogger(TermUpdater_314_315
.class);
34 public static final String startTermVersion
= "3.0.1.4.201105100000";
35 private static final String endTermVersion
= "3.0.1.5.201109280000";
37 // *************************** FACTORY **************************************/
39 public static TermUpdater_314_315
NewInstance(){
40 return new TermUpdater_314_315(startTermVersion
, endTermVersion
);
43 // *************************** CONSTRUCTOR ***********************************/
45 protected TermUpdater_314_315(String startTermVersion
, String endTermVersion
) {
46 super(startTermVersion
, endTermVersion
);
52 * @see eu.etaxonomy.cdm.database.update.ICdmUpdater#invoke()
55 protected List
<ITermUpdaterStep
> getUpdaterList() {
56 List
<ITermUpdaterStep
> list
= new ArrayList
<ITermUpdaterStep
>();
58 // String identical = "\u2261"; //identical
59 // String identical = "\u2258"; //corresponds to
60 // String identical = "\u2263"; //strictly equivalent to
61 String identical
= "\u2245"; //APPROXIMATELY EQUAL TO
62 String included
= "\u2282";
63 String includes
= "\u2283";
64 String overlaps
= "\u2295";
65 String excludes
= "!";
66 String misapplied
= "\u2013";
67 String contradiction
= "\u2205";
71 String description
= null;
74 UUID uuidLang
= Language
.uuidEnglish
;
79 stepName
= "Update concept 'Taxonomically Included in'";
80 uuidTerm
= UUID
.fromString("d13fecdf-eb44-4dd7-9244-26679c05df1c");
82 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
84 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
86 stepName
= "Update concept 'Misapplied Name'";
87 uuidTerm
= UUID
.fromString("1ed87175-59dd-437e-959e-0d71583d8417");
89 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
91 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
93 stepName
= "Update concept 'Invalid Designation for'";
94 uuidTerm
= UUID
.fromString("605b1d01-f2b1-4544-b2e0-6f08def3d6ed");
96 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
98 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
100 stepName
= "Update concept 'Contradiction'";
101 uuidTerm
= UUID
.fromString("a8f03491-2ad6-4fae-a04c-2a4c117a2e9b");
102 abbrev
= contradiction
;
103 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
104 abbrev
= contradiction
;
105 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
107 stepName
= "Update concept 'Congruent to'";
108 uuidTerm
= UUID
.fromString("60974c98-64ab-4574-bb5c-c110f6db634d");
110 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
112 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
114 stepName
= "Update concept 'Includes'";
115 uuidTerm
= UUID
.fromString("0501c385-cab1-4fbe-b945-fc747419bb13");
117 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
119 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
121 stepName
= "Update concept 'Congruent to or Includes'";
122 uuidTerm
= UUID
.fromString("b55cb3a2-6e20-4ca3-95bc-12b59d3235b0");
123 abbrev
= identical
+ includes
;
124 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
125 abbrev
= identical
+ included
;
126 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
128 stepName
= "Update concept 'Included in or Includes'";
129 uuidTerm
= UUID
.fromString("c3ed5089-6779-4051-bb24-f5ea0eca80d5");
130 abbrev
= included
+ includes
;
131 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
132 abbrev
= included
+ includes
;
133 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
135 stepName
= "Update concept 'Congruent to or Included in or Includes'";
136 uuidTerm
= UUID
.fromString("0170cd83-93ad-43c2-9ad1-7ac879300e2f");
137 abbrev
= identical
+ included
+ includes
;
138 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
139 abbrev
= identical
+ included
+ includes
;
140 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
142 stepName
= "Update concept 'Overlaps'";
143 uuidTerm
= UUID
.fromString("2046a0fd-4fd6-45a1-b707-2b91547f3ec7");
145 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
146 // abbrev = overlaps;
147 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
149 stepName
= "Update concept 'Congruent to or Overlaps'";
150 uuidTerm
= UUID
.fromString("78355cfa-5200-432f-8e00-82b97afad0ed");
151 abbrev
= identical
+ overlaps
;
152 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
153 // abbrev = overlaps;
154 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
156 stepName
= "Update concept 'Includes or Overlaps'";
157 uuidTerm
= UUID
.fromString("f1ec567b-3c73-436b-8625-b4fd53588abb");
158 abbrev
= includes
+ overlaps
;
159 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
160 abbrev
= included
+ overlaps
;
161 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
163 stepName
= "Update concept 'Congruent to or Includes or Overlaps'";
164 uuidTerm
= UUID
.fromString("2d923b1a-6c0f-414c-ac9b-bbc502e18078");
165 abbrev
= identical
+ includes
+ overlaps
;
166 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
167 abbrev
= identical
+ included
+ overlaps
;
168 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
170 stepName
= "Update concept 'Included in or Includes or Overlaps'";
171 uuidTerm
= UUID
.fromString("43466aa9-e431-4f37-8bca-febfd9f63716");
172 abbrev
= included
+ includes
+ overlaps
;
173 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
174 // abbrev = included + includes + overlaps;
175 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
177 stepName
= "Update concept 'Does Not Exclude'";
178 uuidTerm
= UUID
.fromString("0e5099bb-87c0-400e-abdc-bcfed5b5eece");
179 abbrev
= identical
+ included
+ includes
+ overlaps
;
180 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
181 // abbrev = identical + included + includes + overlaps;
182 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
184 stepName
= "Update concept 'excludes'";
185 uuidTerm
= UUID
.fromString("4535a63c-4a3f-4d69-9350-7bf02e2c23be");
187 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
188 // abbrev = excludes;
189 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
191 stepName
= "Update concept 'Congruent to or Excludes'";
192 uuidTerm
= UUID
.fromString("758e6cf3-05a0-49ed-9496-d8c4a9fd02ae");
193 abbrev
= identical
+ excludes
;
194 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
195 // abbrev = identical + excludes;
196 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
198 stepName
= "Update concept 'Includes or Excludes'";
199 uuidTerm
= UUID
.fromString("6ee440bc-fd3d-4da2-ad85-906d35a94731");
200 abbrev
= includes
+ excludes
;
201 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
202 abbrev
= included
+ excludes
;
203 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
206 stepName
= "Update concept 'Congruent to or Includes or Excludes'";
207 uuidTerm
= UUID
.fromString("d5c6953d-aa53-46f8-aafc-ebc6428ad5d0");
208 abbrev
= identical
+ includes
+ excludes
;
209 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
210 abbrev
= identical
+ included
+ excludes
;
211 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
213 stepName
= "Update concept 'Included in or Includes or Excludes'";
214 uuidTerm
= UUID
.fromString("43d8492c-8bd5-4f38-a633-f1ad910a34dd");
215 abbrev
= included
+ includes
+ excludes
;
216 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
217 // abbrev = included + includes + excludes;
218 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
220 stepName
= "Update concept 'Does Not Overlap'";
221 uuidTerm
= UUID
.fromString("ecd2382b-3d94-4169-9dd2-2c4ea1d24605");
222 abbrev
= identical
+ included
+ includes
+ excludes
;
223 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
224 // abbrev = identical + included + includes + excludes;
225 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
227 stepName
= "Update concept 'Overlaps or Excludes'";
228 uuidTerm
= UUID
.fromString("623ecdeb-ff1f-471d-a8dc-0d75b2fe8d94");
229 abbrev
= overlaps
+ excludes
;
230 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
231 // abbrev = overlaps + excludes;
232 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
234 stepName
= "Update concept 'Congruent to or Overlaps or Excludes'";
235 uuidTerm
= UUID
.fromString("6fabef72-5264-44f1-bfc0-8e2e141375f2");
236 abbrev
= identical
+ overlaps
+ excludes
;
237 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
238 // abbrev = identical + overlaps + excludes;
239 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
241 stepName
= "Update concept 'Includes or Overlaps or Excludes'";
242 uuidTerm
= UUID
.fromString("b7153c89-cc6c-4f8c-bf74-216f10feac46");
243 abbrev
= includes
+ overlaps
+ excludes
;
244 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
245 abbrev
= included
+ overlaps
+ excludes
;
246 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
248 stepName
= "Update concept 'Not Included in'";
249 uuidTerm
= UUID
.fromString("89dffa4e-e004-4d42-b0d1-ae1827529e43");
250 abbrev
= identical
+ includes
+ overlaps
+ excludes
;
251 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
252 abbrev
= identical
+ included
+ overlaps
+ excludes
;
253 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
255 stepName
= "Update concept 'Not Congruent to'";
256 uuidTerm
= UUID
.fromString("6c16c33b-cfc5-4a00-92bd-a9f9e448f389");
257 abbrev
= included
+ includes
+ overlaps
+ excludes
;
258 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
259 // abbrev = included + includes + overlaps + excludes;
260 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
262 stepName
= "Update concept 'All Relationships'";
263 uuidTerm
= UUID
.fromString("831fcd88-e5c9-49e0-b06e-bbb67d1c05c9");
264 abbrev
= identical
+ included
+ includes
+ overlaps
+ excludes
;
265 list
.add( TermRepresentationUpdater
.NewInstance(stepName
, uuidTerm
, description
, label
, abbrev
, uuidLang
));
266 // abbrev = identical + included + includes + overlaps + excludes;
267 list
.add( TermRepresentationUpdater
.NewReverseInstance(stepName
+ " reverse", uuidTerm
, description
, label
, abbrev
, uuidLang
));
274 * @see eu.etaxonomy.cdm.database.update.ICdmUpdater#getNextUpdater()
277 public ITermUpdater
getNextUpdater() {
278 return TermUpdater_31_33
.NewInstance();
282 * @see eu.etaxonomy.cdm.database.update.ICdmUpdater#getPreviousUpdater()
285 public ITermUpdater
getPreviousUpdater() {
286 return TermUpdater_313_314
.NewInstance();