1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2009 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
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.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.io.pesi.out;
|
11
|
|
12
|
import java.util.UUID;
|
13
|
|
14
|
import org.apache.log4j.Logger;
|
15
|
|
16
|
import eu.etaxonomy.cdm.io.berlinModel.BerlinModelTransformer;
|
17
|
import eu.etaxonomy.cdm.io.pesi.erms.ErmsTransformer;
|
18
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
19
|
import eu.etaxonomy.cdm.model.common.Language;
|
20
|
import eu.etaxonomy.cdm.model.common.RelationshipBase;
|
21
|
import eu.etaxonomy.cdm.model.common.RelationshipTermBase;
|
22
|
import eu.etaxonomy.cdm.model.description.AbsenceTerm;
|
23
|
import eu.etaxonomy.cdm.model.description.Feature;
|
24
|
import eu.etaxonomy.cdm.model.description.PresenceAbsenceTermBase;
|
25
|
import eu.etaxonomy.cdm.model.description.PresenceTerm;
|
26
|
import eu.etaxonomy.cdm.model.location.NamedArea;
|
27
|
import eu.etaxonomy.cdm.model.location.TdwgArea;
|
28
|
import eu.etaxonomy.cdm.model.name.BacterialName;
|
29
|
import eu.etaxonomy.cdm.model.name.BotanicalName;
|
30
|
import eu.etaxonomy.cdm.model.name.NameRelationshipType;
|
31
|
import eu.etaxonomy.cdm.model.name.NameTypeDesignationStatus;
|
32
|
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
|
33
|
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
|
34
|
import eu.etaxonomy.cdm.model.name.Rank;
|
35
|
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
36
|
import eu.etaxonomy.cdm.model.name.ZoologicalName;
|
37
|
import eu.etaxonomy.cdm.model.occurrence.Fossil;
|
38
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
39
|
import eu.etaxonomy.cdm.model.reference.ReferenceType;
|
40
|
import eu.etaxonomy.cdm.model.taxon.Synonym;
|
41
|
import eu.etaxonomy.cdm.model.taxon.SynonymRelationshipType;
|
42
|
import eu.etaxonomy.cdm.model.taxon.Taxon;
|
43
|
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
|
44
|
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
|
45
|
import eu.etaxonomy.cdm.strategy.exceptions.UnknownCdmTypeException;
|
46
|
|
47
|
/**
|
48
|
* @author e.-m.lee
|
49
|
* @date 16.02.2010
|
50
|
*
|
51
|
*/
|
52
|
public final class PesiTransformer {
|
53
|
|
54
|
private static final Logger logger = Logger.getLogger(PesiTransformer.class);
|
55
|
|
56
|
public static final String auctString = "auct.";
|
57
|
|
58
|
public static final UUID cacheCitationUuid = UUID.fromString("29656168-32d6-4301-9067-d57c63be5c67");
|
59
|
public static final UUID expertUserIdUuid = UUID.fromString("e25813d3-c67c-4585-9aa0-970fafde50b4");
|
60
|
public static final UUID speciesExpertUserIdUuid = UUID.fromString("6d42abd8-8894-4980-ae07-e918affd4172");
|
61
|
public static final UUID expertNameUuid = UUID.fromString("24becb79-a90c-47d3-be35-efc87bb48fd3");
|
62
|
public static final UUID speciesExpertNameUuid = UUID.fromString("2e8153d2-7412-49e4-87e1-5c38f4c5153a");
|
63
|
public static final UUID lastActionDateUuid = UUID.fromString("8d0a7d81-bb83-4576-84c3-8c906ef039b2");
|
64
|
public static final UUID lastActionUuid = UUID.fromString("bc20d5bc-6161-4279-9499-89ea26ce5f6a");
|
65
|
public static final UUID taxCommentUuid = UUID.fromString("8041a752-0479-4626-ab1b-b266b751f816");
|
66
|
public static final UUID fauCommentUuid = UUID.fromString("054f773a-41c8-4ad5-83e3-981320c1c126");
|
67
|
public static final UUID fauExtraCodesUuid = UUID.fromString("b8c7e77d-9869-4787-bed6-b4b302dbc5f5");
|
68
|
|
69
|
// References
|
70
|
public static int REF_ARTICLE_IN_PERIODICAL = 1;
|
71
|
public static int REF_PART_OF_OTHER = 2;
|
72
|
public static int REF_BOOK = 3;
|
73
|
public static int REF_DATABASE = 4;
|
74
|
public static int REF_INFORMAL = 5;
|
75
|
public static int REF_NOT_APPLICABLE = 6;
|
76
|
public static int REF_WEBSITE = 7;
|
77
|
public static int REF_PUBLISHED = 8;
|
78
|
public static int REF_JOURNAL = 9;
|
79
|
public static int REF_UNRESOLVED = 10;
|
80
|
public static int REF_PUBLICATION = 11;
|
81
|
|
82
|
public static String REF_STR_ARTICLE_IN_PERIODICAL = "Article in periodical";
|
83
|
public static String REF_STR_PART_OF_OTHER = "Part of other";
|
84
|
public static String REF_STR_BOOK = "Book";
|
85
|
public static String REF_STR_DATABASE = "Database";
|
86
|
public static String REF_STR_INFORMAL = "Informal";
|
87
|
public static String REF_STR_NOT_APPLICABLE = "Not applicable";
|
88
|
public static String REF_STR_WEBSITE = "Website";
|
89
|
public static String REF_STR_PUBLISHED = "Published";
|
90
|
public static String REF_STR_JOURNAL = "Journal";
|
91
|
public static String REF_STR_UNRESOLVED = "Unresolved";
|
92
|
public static String REF_STR_PUBLICATION = "Publication";
|
93
|
|
94
|
// NameStatus
|
95
|
public static int NAME_ST_NOM_INVAL = 1;
|
96
|
public static int NAME_ST_NOM_ILLEG = 2;
|
97
|
public static int NAME_ST_NOM_NUD = 3;
|
98
|
public static int NAME_ST_NOM_REJ = 4;
|
99
|
public static int NAME_ST_NOM_REJ_PROP = 5;
|
100
|
public static int NAME_ST_NOM_UTIQUE_REJ = 6;
|
101
|
public static int NAME_ST_NOM_UTIQUE_REJ_PROP = 7;
|
102
|
public static int NAME_ST_NOM_CONS = 8;
|
103
|
public static int NAME_ST_NOM_CONS_PROP = 9;
|
104
|
public static int NAME_ST_ORTH_CONS = 10;
|
105
|
public static int NAME_ST_ORTH_CONS_PROP = 11;
|
106
|
public static int NAME_ST_NOM_SUPERFL = 12;
|
107
|
public static int NAME_ST_NOM_AMBIG = 13;
|
108
|
public static int NAME_ST_NOM_PROVIS = 14;
|
109
|
public static int NAME_ST_NOM_DUB = 15;
|
110
|
public static int NAME_ST_NOM_NOV = 16;
|
111
|
public static int NAME_ST_NOM_CONFUS = 17;
|
112
|
public static int NAME_ST_NOM_ALTERN = 18;
|
113
|
public static int NAME_ST_COMB_INVAL = 19;
|
114
|
public static int NAME_ST_LEGITIMATE = 20; // PESI specific from here
|
115
|
public static int NAME_ST_COMB_INED = 21;
|
116
|
public static int NAME_ST_COMB_AND_STAT_INED = 22;
|
117
|
public static int NAME_ST_NOM_AND_ORTH_CONS = 23;
|
118
|
public static int NAME_ST_NOM_NOV_INED = 24;
|
119
|
public static int NAME_ST_SP_NOV_INED = 25;
|
120
|
public static int NAME_ST_ALTERNATE_REPRESENTATION = 26;
|
121
|
public static int NAME_ST_TEMPORARY_NAME = 27;
|
122
|
public static int NAME_ST_SPECIES_INQUIRENDA = 28;
|
123
|
|
124
|
public static String NAME_ST_STR_NOM_INVAL = "Nom. Inval.";
|
125
|
public static String NAME_ST_STR_NOM_ILLEG = "Nom. Illeg.";
|
126
|
public static String NAME_ST_STR_NOM_NUD = "Nom. Nud.";
|
127
|
public static String NAME_ST_STR_NOM_REJ = "Nom. Rej.";
|
128
|
public static String NAME_ST_STR_NOM_REJ_PROP = "Nom. Rej. Prop.";
|
129
|
public static String NAME_ST_STR_NOM_UTIQUE_REJ = "Nom. Utique Rej.";
|
130
|
public static String NAME_ST_STR_NOM_UTIQUE_REJ_PROP = "Nom. Utique Rej. Prop.";
|
131
|
public static String NAME_ST_STR_NOM_CONS = "Nom. Cons.";
|
132
|
public static String NAME_ST_STR_NOM_CONS_PROP = "Nom. Cons. Prop.";
|
133
|
public static String NAME_ST_STR_ORTH_CONS = "Orth. Cons.";
|
134
|
public static String NAME_ST_STR_ORTH_CONS_PROP = "Orth. Cons. Prop.";
|
135
|
public static String NAME_ST_STR_NOM_SUPERFL = "Nom. Superfl.";
|
136
|
public static String NAME_ST_STR_NOM_AMBIG = "Nom. Ambig.";
|
137
|
public static String NAME_ST_STR_NOM_PROVIS = "Nom. Provis.";
|
138
|
public static String NAME_ST_STR_NOM_DUB = "Nom. Dub.";
|
139
|
public static String NAME_ST_STR_NOM_NOV = "Nom. Nov.";
|
140
|
public static String NAME_ST_STR_NOM_CONFUS = "Nom. Confus.";
|
141
|
public static String NAME_ST_STR_NOM_ALTERN = "Nom. Altern.";
|
142
|
public static String NAME_ST_STR_COMB_INVAL = "Comb. Inval.";
|
143
|
public static String NAME_ST_STR_LEGITIMATE = "Legitim";
|
144
|
public static String NAME_ST_STR_COMB_INED = "Comb. Ined."; // PESI specific from here
|
145
|
public static String NAME_ST_STR_COMB_AND_STAT_INED = "Comb. & Stat. Ined.";
|
146
|
public static String NAME_ST_STR_NOM_AND_ORTH_CONS = "Nom. & Orth. Cons.";
|
147
|
public static String NAME_ST_STR_NOM_NOV_INED = "Nom. Nov. Ined.";
|
148
|
public static String NAME_ST_STR_SP_NOV_INED = "Sp. Nov. Ined.";
|
149
|
public static String NAME_ST_STR_ALTERNATE_REPRESENTATION = "Alternate Representation";
|
150
|
public static String NAME_ST_STR_TEMPORARY_NAME = "Temporary Name";
|
151
|
public static String NAME_ST_STR_SPECIES_INQUIRENDA = "Species Inquirenda";
|
152
|
|
153
|
// TaxonStatus
|
154
|
public static int T_STATUS_ACCEPTED = 1;
|
155
|
public static int T_STATUS_SYNONYM = 2;
|
156
|
public static int T_STATUS_PARTIAL_SYN = 3;
|
157
|
public static int T_STATUS_PRO_PARTE_SYN = 4;
|
158
|
public static int T_STATUS_UNRESOLVED = 5;
|
159
|
public static int T_STATUS_ORPHANED = 6;
|
160
|
|
161
|
public static String T_STATUS_STR_ACCEPTED = "Accepted";
|
162
|
public static String T_STATUS_STR_SYNONYM = "Synonym";
|
163
|
public static String T_STATUS_STR_PARTIAL_SYN = "Partial Synonym";
|
164
|
public static String T_STATUS_STR_PRO_PARTE_SYN = "Pro Parte Synonym";
|
165
|
public static String T_STATUS_STR_UNRESOLVED = "Unresolved";
|
166
|
public static String T_STATUS_STR_ORPHANED = "Orphaned";
|
167
|
|
168
|
// TypeDesginationStatus
|
169
|
public static int TYPE_BY_ORIGINAL_DESIGNATION = 1;
|
170
|
public static int TYPE_BY_SUBSEQUENT_DESIGNATION = 2;
|
171
|
public static int TYPE_BY_MONOTYPY = 3;
|
172
|
|
173
|
public static String TYPE_STR_BY_ORIGINAL_DESIGNATION = "Type by original designation";
|
174
|
public static String TYPE_STR_BY_SUBSEQUENT_DESIGNATION = "Type by subsequent designation";
|
175
|
public static String TYPE_STR_BY_MONOTYPY = "Type by monotypy";
|
176
|
|
177
|
// RelTaxonQualifier
|
178
|
public static int IS_BASIONYM_FOR = 1;
|
179
|
public static int IS_LATER_HOMONYM_OF = 2;
|
180
|
public static int IS_REPLACED_SYNONYM_FOR = 3;
|
181
|
public static int IS_VALIDATION_OF = 4;
|
182
|
public static int IS_LATER_VALIDATION_OF = 5;
|
183
|
public static int IS_TYPE_OF = 6;
|
184
|
public static int IS_CONSERVED_TYPE_OF = 7;
|
185
|
public static int IS_REJECTED_TYPE_OF = 8;
|
186
|
public static int IS_FIRST_PARENT_OF = 9;
|
187
|
public static int IS_SECOND_PARENT_OF = 10;
|
188
|
public static int IS_FEMALE_PARENT_OF = 11;
|
189
|
public static int IS_MALE_PARENT_OF = 12;
|
190
|
public static int IS_CONSERVED_AGAINST = 13;
|
191
|
public static int IS_REJECTED_IN_FAVOUR_OF = 14;
|
192
|
public static int IS_TREATED_AS_LATER_HOMONYM_OF = 15;
|
193
|
public static int IS_ORTHOGRAPHIC_VARIANT_OF = 16;
|
194
|
public static int IS_ALTERNATIVE_NAME_FOR = 17;
|
195
|
public static int HAS_SAME_TYPE_AS = 18;
|
196
|
public static int IS_LECTOTYPE_OF = 61;
|
197
|
public static int TYPE_NOT_DESIGNATED = 62;
|
198
|
public static int IS_TAXONOMICALLY_INCLUDED_IN = 101;
|
199
|
public static int IS_SYNONYM_OF = 102;
|
200
|
public static int IS_MISAPPLIED_NAME_FOR = 103;
|
201
|
public static int IS_PRO_PARTE_SYNONYM_OF = 104;
|
202
|
public static int IS_PARTIAL_SYNONYM_OF = 105;
|
203
|
public static int IS_HETEROTYPIC_SYNONYM_OF = 106;
|
204
|
public static int IS_HOMOTYPIC_SYNONYM_OF = 107;
|
205
|
public static int IS_PRO_PARTE_AND_HOMOTYPIC_SYNONYM_OF = 201;
|
206
|
public static int IS_PRO_PARTE_AND_HETEROTYPIC_SYNONYM_OF = 202;
|
207
|
public static int IS_PARTIAL_AND_HOMOTYPIC_SYNONYM_OF = 203;
|
208
|
public static int IS_PARTIAL_AND_HETEROTYPIC_SYNONYM_OF = 204;
|
209
|
public static int IS_INFERRED_EPITHET_FOR = 301;
|
210
|
public static int IS_INFERRED_GENUS_FOR = 302;
|
211
|
public static int IS_POTENTIAL_COMBINATION_FOR = 303;
|
212
|
|
213
|
public static String STR_IS_BASIONYM_FOR = "is basionym for";
|
214
|
public static String STR_IS_BASIONYM_FOR_ZOOL = "is original combination for";
|
215
|
public static String STR_IS_LATER_HOMONYM_OF = "is later homonym of";
|
216
|
public static String STR_IS_REPLACED_SYNONYM_FOR = "is replaced synonym for";
|
217
|
public static String STR_IS_VALIDATION_OF = "is validation of";
|
218
|
public static String STR_IS_LATER_VALIDATION_OF = "is later validation of";
|
219
|
public static String STR_IS_TYPE_OF = "is type of";
|
220
|
public static String STR_IS_CONSERVED_TYPE_OF = "is conserved type of";
|
221
|
public static String STR_IS_REJECTED_TYPE_OF = "is rejected type of";
|
222
|
public static String STR_IS_FIRST_PARENT_OF = "is first parent of";
|
223
|
public static String STR_IS_SECOND_PARENT_OF = "is second parent of";
|
224
|
public static String STR_IS_FEMALE_PARENT_OF = "is female parent of";
|
225
|
public static String STR_IS_MALE_PARENT_OF = "is male parent of";
|
226
|
public static String STR_IS_CONSERVED_AGAINST = "is conserved against";
|
227
|
public static String STR_IS_REJECTED_IN_FAVOUR_OF = "is rejected in favour of";
|
228
|
public static String STR_IS_TREATED_AS_LATER_HOMONYM_OF = "is treated as later homonym of";
|
229
|
public static String STR_IS_ORTHOGRAPHIC_VARIANT_OF = "is orthographic variant of";
|
230
|
public static String STR_IS_ALTERNATIVE_NAME_FOR = "is alternative name for";
|
231
|
public static String STR_HAS_SAME_TYPE_AS = "has same type as";
|
232
|
public static String STR_IS_LECTOTYPE_OF = "is lectotype of";
|
233
|
public static String STR_TYPE_NOT_DESIGNATED = "type not designated";
|
234
|
public static String STR_IS_TAXONOMICALLY_INCLUDED_IN = "is taxonomically included in";
|
235
|
public static String STR_IS_SYNONYM_OF = "is synonym of";
|
236
|
public static String STR_IS_MISAPPLIED_NAME_FOR = "is misapplied name for";
|
237
|
public static String STR_IS_PRO_PARTE_SYNONYM_OF = "is pro parte synonym of";
|
238
|
public static String STR_IS_PARTIAL_SYNONYM_OF = "is partial synonym of";
|
239
|
public static String STR_IS_HETEROTYPIC_SYNONYM_OF = "is heterotypic synonym of";
|
240
|
public static String STR_IS_HETEROTYPIC_SYNONYM_OF_ZOOL = "is subjective synonym of";
|
241
|
public static String STR_IS_HOMOTYPIC_SYNONYM_OF = "is homotypic synonym of";
|
242
|
private static final String STR_IS_HOMOTYPIC_SYNONYM_OF_ZOOL = "is objective synonym of";
|
243
|
public static String STR_IS_PRO_PARTE_AND_HOMOTYPIC_SYNONYM_OF = "is pro parte and homotypic synonym of";
|
244
|
public static String STR_IS_PRO_PARTE_AND_HETEROTYPIC_SYNONYM_OF = "is pro parte and heterotypic synonym of";
|
245
|
public static String STR_IS_PARTIAL_AND_HOMOTYPIC_SYNONYM_OF = "is partial and homotypic synonym of";
|
246
|
public static String STR_IS_PARTIAL_AND_HETEROTYPIC_SYNONYM_OF = "is partial and heterotypic synonym of";
|
247
|
public static String STR_IS_INFERRED_EPITHET_FOR = "is inferred epithet for";
|
248
|
public static String STR_IS_INFERRED_GENUS_FOR = "is inferred genus for";
|
249
|
public static String STR_IS_POTENTIAL_COMBINATION_FOR = "is potential combination for";
|
250
|
|
251
|
// Kingdoms
|
252
|
public static int KINGDOM_NULL = 0;
|
253
|
public static int KINGDOM_ANIMALIA = 2;
|
254
|
public static int KINGDOM_PLANTAE = 3;
|
255
|
public static int KINGDOM_FUNGI = 4;
|
256
|
public static int KINGDOM_PROTOZOA = 5;
|
257
|
public static int KINGDOM_BACTERIA = 6;
|
258
|
public static int KINGDOM_CHROMISTA = 7;
|
259
|
|
260
|
// Animalia Ranks
|
261
|
public static int Animalia_Kingdom = 10;
|
262
|
public static int Animalia_Subkingdom = 20;
|
263
|
public static int Animalia_Superphylum = 23;
|
264
|
public static int Animalia_Phylum = 30;
|
265
|
public static int Animalia_Subphylum = 40;
|
266
|
public static int Animalia_Infraphylum = 45;
|
267
|
public static int Animalia_Superclass = 50;
|
268
|
public static int Animalia_Class = 60;
|
269
|
public static int Animalia_Subclass = 70;
|
270
|
public static int Animalia_Infraclass = 80;
|
271
|
public static int Animalia_Superorder = 90;
|
272
|
public static int Animalia_Order = 100;
|
273
|
public static int Animalia_Suborder = 110;
|
274
|
public static int Animalia_Infraorder = 120;
|
275
|
public static int Animalia_Section = 121;
|
276
|
public static int Animalia_Subsection = 122;
|
277
|
public static int Animalia_Superfamily = 130;
|
278
|
public static int Animalia_Family = 140;
|
279
|
public static int Animalia_Subfamily = 150;
|
280
|
public static int Animalia_Tribe = 160;
|
281
|
public static int Animalia_Subtribe = 170;
|
282
|
public static int Animalia_Genus = 180;
|
283
|
public static int Animalia_Subgenus = 190;
|
284
|
public static int Animalia_Species =220;
|
285
|
public static int Animalia_Subspecies = 230;
|
286
|
public static int Animalia_Natio = 235;
|
287
|
public static int Animalia_Variety = 240;
|
288
|
public static int Animalia_Subvariety = 250;
|
289
|
public static int Animalia_Forma = 260;
|
290
|
|
291
|
public static String Animalia_STR_Kingdom = "Kingdom";
|
292
|
public static String Animalia_STR_Subkingdom = "Subkingdom";
|
293
|
public static String Animalia_STR_Superphylum = "Superphylum";
|
294
|
public static String Animalia_STR_Phylum = "Phylum";
|
295
|
public static String Animalia_STR_Subphylum = "Subphylum";
|
296
|
public static String Animalia_STR_Infraphylum = "Infraphylum";
|
297
|
public static String Animalia_STR_Superclass = "Superclass";
|
298
|
public static String Animalia_STR_Class = "Class";
|
299
|
public static String Animalia_STR_Subclass = "Subclass";
|
300
|
public static String Animalia_STR_Infraclass = "Infraclass";
|
301
|
public static String Animalia_STR_Superorder = "Superorder";
|
302
|
public static String Animalia_STR_Order = "Order";
|
303
|
public static String Animalia_STR_Suborder = "Suborder";
|
304
|
public static String Animalia_STR_Infraorder = "Infraorder";
|
305
|
public static String Animalia_STR_Section = "Section";
|
306
|
public static String Animalia_STR_Subsection = "Subsection";
|
307
|
public static String Animalia_STR_Superfamily = "Superfamily";
|
308
|
public static String Animalia_STR_Family = "Family";
|
309
|
public static String Animalia_STR_Subfamily = "Subfamily";
|
310
|
public static String Animalia_STR_Tribe = "Tribe";
|
311
|
public static String Animalia_STR_Subtribe = "Subtribe";
|
312
|
public static String Animalia_STR_Genus = "Genus";
|
313
|
public static String Animalia_STR_Subgenus = "Subgenus";
|
314
|
public static String Animalia_STR_Species = "Species";
|
315
|
public static String Animalia_STR_Subspecies = "Subspecies";
|
316
|
public static String Animalia_STR_Natio = "Natio";
|
317
|
public static String Animalia_STR_Variety = "Variety";
|
318
|
public static String Animalia_STR_Subvariety = "Subvariety";
|
319
|
public static String Animalia_STR_Forma = "Forma";
|
320
|
|
321
|
// Animalia Rank Abbreviations only for used Ranks
|
322
|
public static String Animalia_Abbrev_Subgenus = "subg.";
|
323
|
public static String Animalia_Abbrev_Species = "sp.";
|
324
|
public static String Animalia_Abbrev_Subspecies = "subsp.";
|
325
|
public static String Animalia_Abbrev_Variety = "var.";
|
326
|
public static String Animalia_Abbrev_Subvariety = "subvar.";
|
327
|
public static String Animalia_Abbrev_Forma = "f.";
|
328
|
|
329
|
// Plantae Ranks
|
330
|
public static int Plantae_Kingdom = 10;
|
331
|
public static int Plantae_Subkingdom = 20;
|
332
|
public static int Plantae_Division = 30;
|
333
|
public static int Plantae_Subdivision = 40;
|
334
|
public static int Plantae_Class = 60;
|
335
|
public static int Plantae_Subclass = 70;
|
336
|
public static int Plantae_Order = 100;
|
337
|
public static int Plantae_Suborder = 110;
|
338
|
public static int Plantae_Family = 140;
|
339
|
public static int Plantae_Subfamily = 150;
|
340
|
public static int Plantae_Tribe = 160;
|
341
|
public static int Plantae_Subtribe = 170;
|
342
|
public static int Plantae_Genus = 180;
|
343
|
public static int Plantae_Subgenus = 190;
|
344
|
public static int Plantae_Section = 200;
|
345
|
public static int Plantae_Subsection = 210;
|
346
|
public static int Plantae_Series = 212;
|
347
|
public static int Plantae_Subseries = 214;
|
348
|
public static int Plantae_Aggregate = 216;
|
349
|
public static int Plantae_Coll_Species = 218;
|
350
|
public static int Plantae_Species = 220;
|
351
|
public static int Plantae_Grex = 225;
|
352
|
public static int Plantae_Subspecies = 230;
|
353
|
public static int Plantae_Proles = 232;
|
354
|
public static int Plantae_Race = 234;
|
355
|
public static int Plantae_Convarietas = 236;
|
356
|
public static int Plantae_Variety = 240;
|
357
|
public static int Plantae_Subvariety = 250;
|
358
|
public static int Plantae_Forma = 260;
|
359
|
public static int Plantae_Subforma = 270;
|
360
|
public static int Plantae_Forma_spec = 275;
|
361
|
public static int Plantae_Taxa_infragen = 280;
|
362
|
public static int Plantae_Taxa_infraspec = 285;
|
363
|
|
364
|
public static String Plantae_STR_Kingdom = "Kingdom";
|
365
|
public static String Plantae_STR_Subkingdom = "Subkingdom";
|
366
|
public static String Plantae_STR_Division = "Division";
|
367
|
public static String Plantae_STR_Subdivision = "Subdivision";
|
368
|
public static String Plantae_STR_Class = "Class";
|
369
|
public static String Plantae_STR_Subclass = "Subclass";
|
370
|
public static String Plantae_STR_Order = "Order";
|
371
|
public static String Plantae_STR_Suborder = "Suborder";
|
372
|
public static String Plantae_STR_Family = "Family";
|
373
|
public static String Plantae_STR_Subfamily = "Subfamily";
|
374
|
public static String Plantae_STR_Tribe = "Tribe";
|
375
|
public static String Plantae_STR_Subtribe = "Subtribe";
|
376
|
public static String Plantae_STR_Genus = "Genus";
|
377
|
public static String Plantae_STR_Subgenus = "Subgenus";
|
378
|
public static String Plantae_STR_Section = "Section";
|
379
|
public static String Plantae_STR_Subsection = "Subsection";
|
380
|
public static String Plantae_STR_Series = "Series";
|
381
|
public static String Plantae_STR_Subseries = "Subseries";
|
382
|
public static String Plantae_STR_Aggregate = "Aggregate";
|
383
|
public static String Plantae_STR_Coll_Species = "Coll. Species";
|
384
|
public static String Plantae_STR_Species = "Species";
|
385
|
public static String Plantae_STR_Grex = "Grex";
|
386
|
public static String Plantae_STR_Subspecies = "Subspecies";
|
387
|
public static String Plantae_STR_Proles = "Proles";
|
388
|
public static String Plantae_STR_Race = "Race";
|
389
|
public static String Plantae_STR_Convarietas = "Convarietas";
|
390
|
public static String Plantae_STR_Variety = "Variety";
|
391
|
public static String Plantae_STR_Subvariety = "Subvariety";
|
392
|
public static String Plantae_STR_Forma = "Forma";
|
393
|
public static String Plantae_STR_Subforma = "Subforma";
|
394
|
public static String Plantae_STR_Forma_spec = "Forma spec.";
|
395
|
public static String Plantae_STR_Taxa_infragen = "Taxa infragen.";
|
396
|
public static String Plantae_STR_Taxa_infraspec = "Taxa infraspec.";
|
397
|
|
398
|
// Plantae Rank Abbreviations
|
399
|
public static String Plantae_Abbrev_Kingdom = "reg.";
|
400
|
public static String Plantae_Abbrev_Subkingdom = "subreg.";
|
401
|
public static String Plantae_Abbrev_Division = "div.";
|
402
|
public static String Plantae_Abbrev_Subdivision = "subdiv.";
|
403
|
public static String Plantae_Abbrev_Class = "cl.";
|
404
|
public static String Plantae_Abbrev_Subclass = "subcl.";
|
405
|
public static String Plantae_Abbrev_Order = "ordo";
|
406
|
public static String Plantae_Abbrev_Suborder = "subor.";
|
407
|
public static String Plantae_Abbrev_Family = "fam.";
|
408
|
public static String Plantae_Abbrev_Subfamily = "subfam.";
|
409
|
public static String Plantae_Abbrev_Tribe = "trib.";
|
410
|
public static String Plantae_Abbrev_Subtribe = "subtrib.";
|
411
|
public static String Plantae_Abbrev_Genus = "gen.";
|
412
|
public static String Plantae_Abbrev_Subgenus = "subg.";
|
413
|
public static String Plantae_Abbrev_Section = "sect.";
|
414
|
public static String Plantae_Abbrev_Subsection = "subsect.";
|
415
|
public static String Plantae_Abbrev_Series = "ser.";
|
416
|
public static String Plantae_Abbrev_Subseries = "subser.";
|
417
|
public static String Plantae_Abbrev_Aggregate = "aggr.";
|
418
|
public static String Plantae_Abbrev_Coll_Species = "coll. sp.";
|
419
|
public static String Plantae_Abbrev_Species = "sp.";
|
420
|
public static String Plantae_Abbrev_Grex = "grex";
|
421
|
public static String Plantae_Abbrev_Subspecies = "subsp.";
|
422
|
public static String Plantae_Abbrev_Proles = "prol.";
|
423
|
public static String Plantae_Abbrev_Race = "race";
|
424
|
public static String Plantae_Abbrev_Convarietas = "convar.";
|
425
|
public static String Plantae_Abbrev_Variety = "var.";
|
426
|
public static String Plantae_Abbrev_Subvariety = "subvar.";
|
427
|
public static String Plantae_Abbrev_Forma = "f.";
|
428
|
public static String Plantae_Abbrev_Subforma = "subf.";
|
429
|
public static String Plantae_Abbrev_Forma_spec = "f.spec.";
|
430
|
public static String Plantae_Abbrev_Taxa_infragen = "t.infgen.";
|
431
|
public static String Plantae_Abbrev_Taxa_infraspec = "t.infr.";
|
432
|
|
433
|
// Fungi Ranks
|
434
|
public static int Fungi_Kingdom = 10;
|
435
|
public static int Fungi_Subkingdom = 20;
|
436
|
public static int Fungi_Division = 30;
|
437
|
public static int Fungi_Subdivision = 40;
|
438
|
public static int Fungi_Class = 60;
|
439
|
public static int Fungi_Subclass = 70;
|
440
|
public static int Fungi_Order = 100;
|
441
|
public static int Fungi_Suborder = 110;
|
442
|
public static int Fungi_Family = 140;
|
443
|
public static int Fungi_Subfamily = 150;
|
444
|
public static int Fungi_Tribe = 160;
|
445
|
public static int Fungi_Subtribe = 170;
|
446
|
public static int Fungi_Genus = 180;
|
447
|
public static int Fungi_Subgenus = 190;
|
448
|
public static int Fungi_Section = 200;
|
449
|
public static int Fungi_Subsection = 210;
|
450
|
public static int Fungi_Species = 220;
|
451
|
public static int Fungi_Subspecies = 230;
|
452
|
public static int Fungi_Variety = 240;
|
453
|
public static int Fungi_Subvariety = 250;
|
454
|
public static int Fungi_Forma = 260;
|
455
|
public static int Fungi_Subforma = 270;
|
456
|
|
457
|
//Protozoa Ranks
|
458
|
public static int Protozoa_Kingdom = 10;
|
459
|
public static int Protozoa_Subkingdom = 20;
|
460
|
public static int Protozoa_Phylum = 30;
|
461
|
public static int Protozoa_Subphylum = 40;
|
462
|
public static int Protozoa_Superclass = 50;
|
463
|
public static int Protozoa_Class = 60;
|
464
|
public static int Protozoa_Subclass = 70;
|
465
|
public static int Protozoa_Infraclass = 80;
|
466
|
public static int Protozoa_Superorder = 90;
|
467
|
public static int Protozoa_Order = 100;
|
468
|
public static int Protozoa_Suborder = 110;
|
469
|
public static int Protozoa_Infraorder = 120;
|
470
|
public static int Protozoa_Superfamily = 130;
|
471
|
public static int Protozoa_Family = 140;
|
472
|
public static int Protozoa_Subfamily = 150;
|
473
|
public static int Protozoa_Tribe = 160;
|
474
|
public static int Protozoa_Subtribe = 170;
|
475
|
public static int Protozoa_Genus = 180;
|
476
|
public static int Protozoa_Subgenus = 190;
|
477
|
public static int Protozoa_Species = 220;
|
478
|
public static int Protozoa_Subspecies = 230;
|
479
|
public static int Protozoa_Variety = 240;
|
480
|
public static int Protozoa_Forma = 260;
|
481
|
|
482
|
// Bacteria Ranks
|
483
|
public static int Bacteria_Kingdom = 10;
|
484
|
public static int Bacteria_Subkingdom = 20;
|
485
|
public static int Bacteria_Phylum = 30;
|
486
|
public static int Bacteria_Subphylum = 40;
|
487
|
public static int Bacteria_Superclass = 50;
|
488
|
public static int Bacteria_Class = 60;
|
489
|
public static int Bacteria_Subclass = 70;
|
490
|
public static int Bacteria_Infraclass = 80;
|
491
|
public static int Bacteria_Superorder = 90;
|
492
|
public static int Bacteria_Order = 100;
|
493
|
public static int Bacteria_Suborder = 110;
|
494
|
public static int Bacteria_Infraorder = 120;
|
495
|
public static int Bacteria_Superfamily = 130;
|
496
|
public static int Bacteria_Family = 140;
|
497
|
public static int Bacteria_Subfamily = 150;
|
498
|
public static int Bacteria_Tribe = 160;
|
499
|
public static int Bacteria_Subtribe = 170;
|
500
|
public static int Bacteria_Genus = 180;
|
501
|
public static int Bacteria_Subgenus = 190;
|
502
|
public static int Bacteria_Species = 220;
|
503
|
public static int Bacteria_Subspecies = 230;
|
504
|
public static int Bacteria_Variety = 240;
|
505
|
public static int Bacteria_Forma = 260;
|
506
|
|
507
|
public static String Bacteria_STR_Kingdom = "Kingdom";
|
508
|
public static String Bacteria_STR_Subkingdom = "Subkingdom";
|
509
|
public static String Bacteria_STR_Phylum = "Phylum";
|
510
|
public static String Bacteria_STR_Subphylum = "Subphylum";
|
511
|
public static String Bacteria_STR_Superclass = "Superclass";
|
512
|
public static String Bacteria_STR_Class = "Class";
|
513
|
public static String Bacteria_STR_Subclass = "Subclass";
|
514
|
public static String Bacteria_STR_Infraclass = "Infraclass";
|
515
|
public static String Bacteria_STR_Superorder = "Superorder";
|
516
|
public static String Bacteria_STR_Order = "Order";
|
517
|
public static String Bacteria_STR_Suborder = "Suborder";
|
518
|
public static String Bacteria_STR_Infraorder = "Infraorder";
|
519
|
public static String Bacteria_STR_Superfamily = "Superfamily";
|
520
|
public static String Bacteria_STR_Family = "Family";
|
521
|
public static String Bacteria_STR_Subfamily = "Subfamily";
|
522
|
public static String Bacteria_STR_Tribe = "Tribe";
|
523
|
public static String Bacteria_STR_Subtribe = "Subtribe";
|
524
|
public static String Bacteria_STR_Genus = "Genus";
|
525
|
public static String Bacteria_STR_Subgenus = "Subgenus";
|
526
|
public static String Bacteria_STR_Species = "Species";
|
527
|
public static String Bacteria_STR_Subspecies = "Subspecies";
|
528
|
public static String Bacteria_STR_Variety = "Variety";
|
529
|
public static String Bacteria_STR_Forma = "Forma";
|
530
|
|
531
|
// Chromista Ranks
|
532
|
public static int Chromista_Kingdom = 10;
|
533
|
public static int Chromista_Subkingdom = 20;
|
534
|
public static int Chromista_Infrakingdom = 25;
|
535
|
public static int Chromista_Phylum = 30;
|
536
|
public static int Chromista_Subphylum = 40;
|
537
|
public static int Chromista_Superclass = 50;
|
538
|
public static int Chromista_Class = 60;
|
539
|
public static int Chromista_Subclass = 70;
|
540
|
public static int Chromista_Infraclass = 80;
|
541
|
public static int Chromista_Superorder = 90;
|
542
|
public static int Chromista_Order = 100;
|
543
|
public static int Chromista_Suborder = 110;
|
544
|
public static int Chromista_Infraorder = 120;
|
545
|
public static int Chromista_Superfamily = 130;
|
546
|
public static int Chromista_Family = 140;
|
547
|
public static int Chromista_Subfamily = 150;
|
548
|
public static int Chromista_Tribe = 160;
|
549
|
public static int Chromista_Subtribe = 170;
|
550
|
public static int Chromista_Genus = 180;
|
551
|
public static int Chromista_Subgenus = 190;
|
552
|
public static int Chromista_Section = 200;
|
553
|
public static int Chromista_Subsection = 210;
|
554
|
public static int Chromista_Species = 220;
|
555
|
public static int Chromista_Subspecies = 230;
|
556
|
public static int Chromista_Variety = 240;
|
557
|
public static int Chromista_Subvariety = 250;
|
558
|
public static int Chromista_Forma = 260;
|
559
|
|
560
|
// NoteCategory
|
561
|
public static int NoteCategory_description = 1;
|
562
|
public static int NoteCategory_ecology = 4;
|
563
|
public static int NoteCategory_phenology = 5;
|
564
|
public static int NoteCategory_general_distribution_euromed = 10;
|
565
|
public static int NoteCategory_general_distribution_world = 11;
|
566
|
public static int NoteCategory_Common_names = 12;
|
567
|
public static int NoteCategory_Occurrence = 13;
|
568
|
public static int NoteCategory_Maps =14;
|
569
|
public static int NoteCategory_Link_to_maps = 20;
|
570
|
public static int NoteCategory_Link_to_images = 21;
|
571
|
public static int NoteCategory_Link_to_taxonomy = 22;
|
572
|
public static int NoteCategory_Link_to_general_information = 23;
|
573
|
public static int NoteCategory_undefined_link = 24;
|
574
|
public static int NoteCategory_Editor_Braces = 249;
|
575
|
public static int NoteCategory_Editor_Brackets = 250;
|
576
|
public static int NoteCategory_Editor_Parenthesis = 251;
|
577
|
public static int NoteCategory_Inedited = 252;
|
578
|
public static int NoteCategory_Comments_on_editing_process = 253;
|
579
|
public static int NoteCategory_Publication_date = 254;
|
580
|
public static int NoteCategory_Morphology = 255;
|
581
|
public static int NoteCategory_Acknowledgments = 257;
|
582
|
public static int NoteCategory_Original_publication = 258;
|
583
|
public static int NoteCategory_Type_locality = 259;
|
584
|
public static int NoteCategory_Environment = 260;
|
585
|
public static int NoteCategory_Spelling = 261;
|
586
|
public static int NoteCategory_Systematics = 262;
|
587
|
public static int NoteCategory_Remark = 263;
|
588
|
public static int NoteCategory_Date_of_publication = 264;
|
589
|
public static int NoteCategory_Additional_information = 266;
|
590
|
public static int NoteCategory_Status = 267;
|
591
|
public static int NoteCategory_Nomenclature = 268;
|
592
|
public static int NoteCategory_Homonymy = 269;
|
593
|
public static int NoteCategory_Taxonomy = 270;
|
594
|
public static int NoteCategory_Taxonomic_status = 272;
|
595
|
public static int NoteCategory_Authority = 273;
|
596
|
public static int NoteCategory_Identification = 274;
|
597
|
public static int NoteCategory_Validity = 275;
|
598
|
public static int NoteCategory_Classification = 276;
|
599
|
public static int NoteCategory_Distribution = 278;
|
600
|
public static int NoteCategory_Synonymy = 279;
|
601
|
public static int NoteCategory_Habitat = 280;
|
602
|
public static int NoteCategory_Biology = 281;
|
603
|
public static int NoteCategory_Diagnosis = 282;
|
604
|
public static int NoteCategory_Host = 283;
|
605
|
public static int NoteCategory_Note = 284;
|
606
|
public static int NoteCategory_Rank = 285;
|
607
|
public static int NoteCategory_Taxonomic_Remark = 286;
|
608
|
public static int NoteCategory_Taxonomic_Remarks = 287;
|
609
|
|
610
|
|
611
|
public static String NoteCategory_STR_description = "description";
|
612
|
public static String NoteCategory_STR_ecology = "ecology";
|
613
|
public static String NoteCategory_STR_phenology = "phenology";
|
614
|
public static String NoteCategory_STR_general_distribution_euromed = "general distribution (Euro+Med)";
|
615
|
public static String NoteCategory_STR_general_distribution_world = "general distribution (world)";
|
616
|
public static String NoteCategory_STR_Common_names = "Common names";
|
617
|
public static String NoteCategory_STR_Occurrence = "Occurrence";
|
618
|
public static String NoteCategory_STR_Maps = "Maps";
|
619
|
public static String NoteCategory_STR_Link_to_maps = "Link to maps";
|
620
|
public static String NoteCategory_STR_Link_to_images = "Link to images";
|
621
|
public static String NoteCategory_STR_Link_to_taxonomy = "Link to taxonomy";
|
622
|
public static String NoteCategory_STR_Link_to_general_information = "Link to general information";
|
623
|
public static String NoteCategory_STR_undefined_link = "undefined link";
|
624
|
public static String NoteCategory_STR_Editor_Braces = "Editor_Braces";
|
625
|
public static String NoteCategory_STR_Editor_Brackets = "Editor_Brackets";
|
626
|
public static String NoteCategory_STR_Editor_Parenthesis = "Editor_Parenthesis";
|
627
|
public static String NoteCategory_STR_Inedited = "Inedited";
|
628
|
public static String NoteCategory_STR_Comments_on_editing_process = "Comments on editing process";
|
629
|
public static String NoteCategory_STR_Publication_date = "Publication date";
|
630
|
public static String NoteCategory_STR_Morphology = "Morphology";
|
631
|
public static String NoteCategory_STR_Acknowledgments = "Acknowledgments";
|
632
|
public static String NoteCategory_STR_Original_publication = "Original publication";
|
633
|
public static String NoteCategory_STR_Type_locality = "Type locality";
|
634
|
public static String NoteCategory_STR_Environment = "Environment";
|
635
|
public static String NoteCategory_STR_Spelling = "Spelling";
|
636
|
public static String NoteCategory_STR_Systematics = "Systematics";
|
637
|
public static String NoteCategory_STR_Remark = "Remark";
|
638
|
public static String NoteCategory_STR_Date_of_publication = "Date of publication";
|
639
|
public static String NoteCategory_STR_Additional_information = "Additional information";
|
640
|
public static String NoteCategory_STR_Status = "Status";
|
641
|
public static String NoteCategory_STR_Nomenclature = "Nomenclature";
|
642
|
public static String NoteCategory_STR_Homonymy = "Homonymy";
|
643
|
public static String NoteCategory_STR_Taxonomy = "Taxonomy";
|
644
|
public static String NoteCategory_STR_Taxonomic_status = "Taxonomic status";
|
645
|
public static String NoteCategory_STR_Authority = "Authority";
|
646
|
public static String NoteCategory_STR_Identification = "Identification";
|
647
|
public static String NoteCategory_STR_Validity = "Validity";
|
648
|
public static String NoteCategory_STR_Classification = "Classification";
|
649
|
public static String NoteCategory_STR_Distribution = "Distribution";
|
650
|
public static String NoteCategory_STR_Synonymy = "Synonymy";
|
651
|
public static String NoteCategory_STR_Habitat = "Habitat";
|
652
|
public static String NoteCategory_STR_Biology = "Biology";
|
653
|
public static String NoteCategory_STR_Diagnosis = "Diagnosis";
|
654
|
public static String NoteCategory_STR_Host = "Host";
|
655
|
public static String NoteCategory_STR_Note = "Note";
|
656
|
public static String NoteCategory_STR_Rank = "Rank";
|
657
|
public static String NoteCategory_STR_Taxonomic_Remark = "Taxonomic Remark";
|
658
|
public static String NoteCategory_STR_Taxonomic_Remarks = "Taxonomic Remarks";
|
659
|
|
660
|
|
661
|
// Language
|
662
|
public static int Language_Albanian = 1;
|
663
|
public static int Language_Arabic = 2;
|
664
|
public static int Language_Armenian = 3;
|
665
|
public static int Language_Azerbaijan = 4;
|
666
|
public static int Language_Belarusian = 5;
|
667
|
public static int Language_Bulgarian = 6;
|
668
|
public static int Language_Catalan = 7;
|
669
|
public static int Language_Croat = 8;
|
670
|
public static int Language_Czech = 9;
|
671
|
public static int Language_Danish = 10;
|
672
|
public static int Language_Dutch = 11;
|
673
|
public static int Language_English = 12;
|
674
|
public static int Language_Euskera = 13;
|
675
|
public static int Language_Estonian = 14;
|
676
|
public static int Language_Finnish = 15;
|
677
|
public static int Language_French = 16;
|
678
|
public static int Language_Georgian = 17;
|
679
|
public static int Language_German = 18;
|
680
|
public static int Language_Greek = 19;
|
681
|
public static int Language_Hungarian = 20;
|
682
|
public static int Language_Icelandic = 21;
|
683
|
public static int Language_Irish_Gaelic = 22;
|
684
|
public static int Language_Israel_Hebrew = 23;
|
685
|
public static int Language_Italian = 24;
|
686
|
public static int Language_Latvian = 25;
|
687
|
public static int Language_Lithuanian = 26;
|
688
|
public static int Language_Macedonian = 27;
|
689
|
public static int Language_Maltese = 28;
|
690
|
public static int Language_Moldovian = 29;
|
691
|
public static int Language_Norwegian = 30;
|
692
|
public static int Language_Polish = 31;
|
693
|
public static int Language_Portuguese = 32;
|
694
|
public static int Language_Roumanian = 33;
|
695
|
public static int Language_Russian = 34;
|
696
|
public static int Language_Russian_Caucasian = 35;
|
697
|
public static int Language_Russian_Altaic_kalmyk_oirat = 36;
|
698
|
public static int Language_Russian_Altaic_karachay_balkar = 37;
|
699
|
public static int Language_Russian_Altaic_kumyk = 38;
|
700
|
public static int Language_Russian_Altaic_nogai = 39;
|
701
|
public static int Language_Russian_Altaic_north_azerbaijani = 40;
|
702
|
public static int Language_Russian_Indo_european_russian = 41;
|
703
|
public static int Language_Russian_Indo_european_kalmyk_oirat = 42;
|
704
|
public static int Language_Russian_Indo_european_osetin = 43;
|
705
|
public static int Language_Russian_North_caucasian_abaza = 44;
|
706
|
public static int Language_Russian_North_caucasian_adyghe = 45;
|
707
|
public static int Language_Russian_North_caucasian_chechen = 46;
|
708
|
public static int Language_Russian_North_caucasian_kabardian = 47;
|
709
|
public static int Language_Russian_North_caucasian_lak = 48;
|
710
|
public static int Language_Russian_North_caucasian_avar = 49;
|
711
|
public static int Language_Russian_North_caucasian_in = 50;
|
712
|
public static int Language_Russian_Uralic_chuvash = 51;
|
713
|
public static int Language_Russian_Uralic_udmurt = 52;
|
714
|
public static int Language_Serbian = 53;
|
715
|
public static int Language_Slovak = 54;
|
716
|
public static int Language_Slovene = 55;
|
717
|
public static int Language_Spanish_Castillian = 56;
|
718
|
public static int Language_Swedish = 57;
|
719
|
public static int Language_Turkish = 58;
|
720
|
public static int Language_Ukraine = 59;
|
721
|
public static int Language_Welsh = 60;
|
722
|
public static int Language_Corsican = 61;
|
723
|
|
724
|
public static String STR_LANGUAGE_ALBANIAN = "Albanian";
|
725
|
public static String STR_LANGUAGE_ARABIC = "Arabic";
|
726
|
public static String STR_LANGUAGE_ARMENIAN = "Armenian";
|
727
|
public static String STR_LANGUAGE_AZERBAIJAN = "Azerbaijan";
|
728
|
public static String STR_LANGUAGE_BELARUSIAN = "Belarusian";
|
729
|
public static String STR_LANGUAGE_BULGARIAN = "Bulgarian";
|
730
|
public static String STR_LANGUAGE_CATALAN = "Catalan";
|
731
|
public static String STR_LANGUAGE_CROAT = "Croat";
|
732
|
public static String STR_LANGUAGE_CZECH = "Czech";
|
733
|
public static String STR_LANGUAGE_DANISH = "Danish";
|
734
|
public static String STR_LANGUAGE_DUTCH = "Dutch";
|
735
|
public static String STR_LANGUAGE_ENGLISH = "English";
|
736
|
public static String STR_LANGUAGE_EUSKERA = "Euskera";
|
737
|
public static String STR_LANGUAGE_ESTONIAN = "Estonian";
|
738
|
public static String STR_LANGUAGE_FINNISH = "Finnish";
|
739
|
public static String STR_LANGUAGE_FRENCH = "French";
|
740
|
public static String STR_LANGUAGE_GEORGIAN = "Georgian";
|
741
|
public static String STR_LANGUAGE_GERMAN = "German";
|
742
|
public static String STR_LANGUAGE_GREEK = "Greek";
|
743
|
public static String STR_LANGUAGE_HUNGARIAN = "Hungarian";
|
744
|
public static String STR_LANGUAGE_ICELANDIC = "Icelandic";
|
745
|
public static String STR_LANGUAGE_IRISH_GAELIC = "Irish Gaelic";
|
746
|
public static String STR_LANGUAGE_ISRAEL_HEBREW = "Israel (Hebrew)";
|
747
|
public static String STR_LANGUAGE_ITALIAN = "Italian";
|
748
|
public static String STR_LANGUAGE_LATVIAN = "Latvian";
|
749
|
public static String STR_LANGUAGE_LITHUANIAN = "Lithuanian";
|
750
|
public static String STR_LANGUAGE_MACEDONIAN = "Macedonian";
|
751
|
public static String STR_LANGUAGE_MALTESE = "Maltese";
|
752
|
public static String STR_LANGUAGE_MOLDOVIAN = "Moldovian";
|
753
|
public static String STR_LANGUAGE_NORWEGIAN = "Norwegian";
|
754
|
public static String STR_LANGUAGE_POLISH = "Polish";
|
755
|
public static String STR_LANGUAGE_PORTUGUESE = "Portuguese";
|
756
|
public static String STR_LANGUAGE_ROUMANIAN = "Roumanian";
|
757
|
public static String STR_LANGUAGE_RUSSIAN = "Russian";
|
758
|
public static String STR_LANGUAGE_RUSSIAN_CAUCASIAN = "Russian Caucasian";
|
759
|
public static String STR_LANGUAGE_RUSSIAN_ALTAIC_KALMYK_OIRAT = "Russian (Altaic, kalmyk-oirat)";
|
760
|
public static String STR_LANGUAGE_RUSSIAN_ALTAIC_KARACHAY_BALKAR = "Russian (Altaic, karachay-balkar)";
|
761
|
public static String STR_LANGUAGE_RUSSIAN_ALTAIC_KUMYK = "Russian (Altaic, kumyk)";
|
762
|
public static String STR_LANGUAGE_RUSSIAN_ALTAIC_NOGAI = "Russian (Altaic, nogai)";
|
763
|
public static String STR_LANGUAGE_RUSSIAN_ALTAIC_NORTH_AZERBAIJANI = "Russian (Altaic, north azerbaijani)";
|
764
|
public static String STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_RUSSIAN = "Russian (Indo-european, russian)";
|
765
|
public static String STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_KALMYK_OIRAT = "Russian (Indo-european, kalmyk-oirat)";
|
766
|
public static String STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_OSETIN = "Russian (Indo-european, osetin)";
|
767
|
public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_ABAZA = "Russian (North caucasian, abaza)";
|
768
|
public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_ADYGHE = "Russian (North caucasian, adyghe)";
|
769
|
public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_CHECHEN = "Russian (North caucasian, chechen)";
|
770
|
public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_KABARDIAN = "Russian (North caucasian, kabardian)";
|
771
|
public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_LAK = "Russian (North caucasian, lak)";
|
772
|
public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_AVAR = "Russian (North caucasian, avar)";
|
773
|
public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_IN = "Russian (North caucasian, in)";
|
774
|
public static String STR_LANGUAGE_RUSSIAN_URALIC_CHUVASH = "Russian (Uralic, chuvash)";
|
775
|
public static String STR_LANGUAGE_RUSSIAN_URALIC_UDMURT = "Russian (Uralic, udmurt)";
|
776
|
public static String STR_LANGUAGE_SERBIAN = "Serbian";
|
777
|
public static String STR_LANGUAGE_SLOVAK = "Slovak";
|
778
|
public static String STR_LANGUAGE_SLOVENE = "Slovene";
|
779
|
public static String STR_LANGUAGE_SPANISH_CASTILLIAN = "Spanish, Castillian";
|
780
|
public static String STR_LANGUAGE_SWEDISH = "Swedish";
|
781
|
public static String STR_LANGUAGE_TURKISH = "Turkish";
|
782
|
public static String STR_LANGUAGE_UKRAINE = "Ukraine";
|
783
|
public static String STR_LANGUAGE_WELSH = "Welsh";
|
784
|
public static String STR_LANGUAGE_CORSICAN = "Corsican";
|
785
|
|
786
|
|
787
|
// FossilStatus
|
788
|
public static int FOSSILSTATUS_RECENT_ONLY = 1;
|
789
|
public static int FOSSILSTATUS_FOSSIL_ONLY = 2;
|
790
|
public static int FOSSILSTATUS_RECENT_FOSSIL = 3;
|
791
|
|
792
|
public static String STR_RECENT_ONLY = "recent only";
|
793
|
public static String STR_FOSSIL_ONLY = "fossil only";
|
794
|
public static String STR_RECENT_FOSSIL = "recent + fossil";
|
795
|
|
796
|
// SourceUse
|
797
|
public static int ORIGINAL_DESCRIPTION = 1;
|
798
|
public static int BASIS_OF_RECORD = 2;
|
799
|
public static int ADDITIONAL_SOURCE = 3;
|
800
|
public static int SOURCE_OF_SYNONYMY = 4;
|
801
|
public static int REDESCRIPTION = 5;
|
802
|
public static int NEW_COMBINATION_REFERENCE = 6;
|
803
|
public static int STATUS_SOURCE = 7;
|
804
|
public static int NOMENCLATURAL_REFERENCE = 8;
|
805
|
|
806
|
public static String STR_ORIGINAL_DESCRIPTION = "original description";
|
807
|
public static String STR_BASIS_OF_RECORD = "basis of record";
|
808
|
public static String STR_ADDITIONAL_SOURCE = "additional source";
|
809
|
public static String STR_SOURCE_OF_SYNONYMY = "source of synonymy";
|
810
|
public static String STR_REDESCRIPTION = "redescription";
|
811
|
public static String STR_NEW_COMBINATION_REFERENCE = "new combination reference";
|
812
|
public static String STR_STATUS_SOURCE = "status source";
|
813
|
public static String STR_NOMENCLATURAL_REFERENCE = "nomenclatural reference";
|
814
|
|
815
|
// Area
|
816
|
public static int AREA_EAST_AEGEAN_ISLANDS = 1;
|
817
|
public static int AREA_GREEK_EAST_AEGEAN_ISLANDS = 2;
|
818
|
public static int AREA_TURKISH_EAST_AEGEAN_ISLANDS = 3;
|
819
|
public static int AREA_ALBANIA = 4;
|
820
|
public static int AREA_AUSTRIA_WITH_LIECHTENSTEIN = 5;
|
821
|
public static int AREA_AUSTRIA = 6;
|
822
|
public static int AREA_LIECHTENSTEIN = 7;
|
823
|
public static int AREA_AZORES = 8;
|
824
|
public static int AREA_CORVO = 9;
|
825
|
public static int AREA_FAIAL = 10;
|
826
|
public static int AREA_GRACIOSA = 11;
|
827
|
public static int AREA_SAO_JORGE = 12;
|
828
|
public static int AREA_FLORES = 13;
|
829
|
public static int AREA_SAO_MIGUEL = 14;
|
830
|
public static int AREA_PICO = 15;
|
831
|
public static int AREA_SANTA_MARIA = 16;
|
832
|
public static int AREA_TERCEIRA = 17;
|
833
|
public static int AREA_BELGIUM_WITH_LUXEMBOURG = 18;
|
834
|
public static int AREA_BELGIUM = 19;
|
835
|
public static int AREA_LUXEMBOURG = 20;
|
836
|
public static int AREA_BOSNIA_HERZEGOVINA = 21;
|
837
|
public static int AREA_BALEARES = 22;
|
838
|
public static int AREA_IBIZA_WITH_FORMENTERA = 23;
|
839
|
public static int AREA_MALLORCA = 24;
|
840
|
public static int AREA_MENORCA = 25;
|
841
|
public static int AREA_GREAT_BRITAIN = 26;
|
842
|
public static int AREA_BALTIC_STATES_ESTONIA_LATVIA_LITHUANIA_AND_KALININGRAD_REGION = 27;
|
843
|
public static int AREA_BULGARIA = 28;
|
844
|
public static int AREA_BELARUS = 29;
|
845
|
public static int AREA_CANARY_ISLANDS = 30;
|
846
|
public static int AREA_GRAN_CANARIA = 31;
|
847
|
public static int AREA_FUERTEVENTURA_WITH_LOBOS = 32;
|
848
|
public static int AREA_GOMERA = 33;
|
849
|
public static int AREA_HIERRO = 34;
|
850
|
public static int AREA_LANZAROTE_WITH_GRACIOSA = 35;
|
851
|
public static int AREA_LA_PALMA = 36;
|
852
|
public static int AREA_TENERIFE = 37;
|
853
|
public static int AREA_MONTENEGRO = 38;
|
854
|
public static int AREA_CORSE = 39;
|
855
|
public static int AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS = 40;
|
856
|
public static int AREA_CZECH_REPUBLIC = 41;
|
857
|
public static int AREA_CROATIA = 42;
|
858
|
public static int AREA_CYPRUS = 43;
|
859
|
public static int AREA_FORMER_CZECHOSLOVAKIA = 44;
|
860
|
public static int AREA_DENMARK_WITH_BORNHOLM = 45;
|
861
|
public static int AREA_ESTONIA = 46;
|
862
|
public static int AREA_FAROE_ISLANDS = 47;
|
863
|
public static int AREA_FINLAND_WITH_AHVENANMAA = 48;
|
864
|
public static int AREA_FRANCE = 49;
|
865
|
public static int AREA_CHANNEL_ISLANDS = 50;
|
866
|
public static int AREA_FRENCH_MAINLAND = 51;
|
867
|
public static int AREA_MONACO = 52;
|
868
|
public static int AREA_GERMANY = 53;
|
869
|
public static int AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS = 54;
|
870
|
public static int AREA_IRELAND = 55;
|
871
|
public static int AREA_REPUBLIC_OF_IRELAND = 56;
|
872
|
public static int AREA_NORTHERN_IRELAND = 57;
|
873
|
public static int AREA_SWITZERLAND = 58;
|
874
|
public static int AREA_NETHERLANDS = 59;
|
875
|
public static int AREA_SPAIN = 60;
|
876
|
public static int AREA_ANDORRA = 61;
|
877
|
public static int AREA_GIBRALTAR = 62;
|
878
|
public static int AREA_KINGDOM_OF_SPAIN = 63;
|
879
|
public static int AREA_HUNGARY = 64;
|
880
|
public static int AREA_ICELAND = 65;
|
881
|
public static int AREA_ITALY = 66;
|
882
|
public static int AREA_ITALIAN_MAINLAND = 67;
|
883
|
public static int AREA_SAN_MARINO = 68;
|
884
|
public static int AREA_FORMER_JUGOSLAVIA = 69;
|
885
|
public static int AREA_LATVIA = 70;
|
886
|
public static int AREA_LITHUANIA = 71;
|
887
|
public static int AREA_PORTUGUESE_MAINLAND = 72;
|
888
|
public static int AREA_MADEIRA_ARCHIPELAGO = 73;
|
889
|
public static int AREA_DESERTAS = 74;
|
890
|
public static int AREA_MADEIRA = 75;
|
891
|
public static int AREA_PORTO_SANTO = 76;
|
892
|
public static int AREA_THE_FORMER_JUGOSLAV_REPUBLIC_OF_MAKEDONIJA = 77;
|
893
|
public static int AREA_MOLDOVA = 78;
|
894
|
public static int AREA_NORWEGIAN_MAINLAND = 79;
|
895
|
public static int AREA_POLAND = 80;
|
896
|
public static int AREA_THE_RUSSIAN_FEDERATION = 81;
|
897
|
public static int AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND = 82;
|
898
|
public static int AREA_CENTRAL_EUROPEAN_RUSSIA = 83;
|
899
|
public static int AREA_EASTERN_EUROPEAN_RUSSIA = 84;
|
900
|
public static int AREA_KALININGRAD = 85;
|
901
|
public static int AREA_NORTHERN_EUROPEAN_RUSSIA = 86;
|
902
|
public static int AREA_NORTHWEST_EUROPEAN_RUSSIA = 87;
|
903
|
public static int AREA_SOUTH_EUROPEAN_RUSSIA = 88;
|
904
|
public static int AREA_ROMANIA = 89;
|
905
|
public static int AREA_FORMER_USSR = 90;
|
906
|
public static int AREA_RUSSIA_BALTIC = 91;
|
907
|
public static int AREA_RUSSIA_CENTRAL = 92;
|
908
|
public static int AREA_RUSSIA_SOUTHEAST = 93;
|
909
|
public static int AREA_RUSSIA_NORTHERN = 94;
|
910
|
public static int AREA_RUSSIA_SOUTHWEST = 95;
|
911
|
public static int AREA_SARDEGNA = 96;
|
912
|
public static int AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN = 97;
|
913
|
public static int AREA_SELVAGENS_ISLANDS = 98;
|
914
|
public static int AREA_SICILY_WITH_MALTA = 99;
|
915
|
public static int AREA_MALTA = 100;
|
916
|
public static int AREA_SICILY = 101;
|
917
|
public static int AREA_SLOVAKIA = 102;
|
918
|
public static int AREA_SLOVENIA = 103;
|
919
|
public static int AREA_SERBIA_WITH_MONTENEGRO = 104;
|
920
|
public static int AREA_SERBIA_INCLUDING_VOJVODINA_AND_WITH_KOSOVO = 105;
|
921
|
public static int AREA_SWEDEN = 106;
|
922
|
public static int AREA_EUROPEAN_TURKEY = 107;
|
923
|
public static int AREA_UKRAINE_INCLUDING_CRIMEA = 108;
|
924
|
public static int AREA_CRIMEA = 109;
|
925
|
public static int AREA_UKRAINE = 110;
|
926
|
public static int AREA_GREEK_MAINLAND = 111;
|
927
|
public static int AREA_CRETE = 112;
|
928
|
public static int AREA_DODECANESE_ISLANDS = 113;
|
929
|
public static int AREA_CYCLADES_ISLANDS = 114;
|
930
|
public static int AREA_NORTH_AEGEAN_ISLANDS = 115;
|
931
|
public static int AREA_VATICAN_CITY = 116;
|
932
|
public static int AREA_FRANZ_JOSEF_LAND = 117;
|
933
|
public static int AREA_NOVAYA_ZEMLYA = 118;
|
934
|
public static int AREA_AZERBAIJAN_INCLUDING_NAKHICHEVAN = 119;
|
935
|
public static int AREA_AZERBAIJAN = 120;
|
936
|
public static int AREA_NAKHICHEVAN = 121;
|
937
|
public static int AREA_ALGERIA = 122;
|
938
|
public static int AREA_ARMENIA = 123;
|
939
|
public static int AREA_CAUCASUS_REGION = 124;
|
940
|
public static int AREA_EGYPT = 125;
|
941
|
public static int AREA_GEORGIA = 126;
|
942
|
public static int AREA_ISRAEL_JORDAN = 127;
|
943
|
public static int AREA_ISRAEL = 128;
|
944
|
public static int AREA_JORDAN = 129;
|
945
|
public static int AREA_LEBANON = 130;
|
946
|
public static int AREA_LIBYA = 131;
|
947
|
public static int AREA_LEBANON_SYRIA = 132;
|
948
|
public static int AREA_MOROCCO = 133;
|
949
|
public static int AREA_NORTH_CAUCASUS = 134;
|
950
|
public static int AREA_SINAI = 135;
|
951
|
public static int AREA_SYRIA = 136;
|
952
|
public static int AREA_TUNISIA = 137;
|
953
|
public static int AREA_ASIATIC_TURKEY = 138;
|
954
|
public static int AREA_TURKEY = 139;
|
955
|
public static int AREA_NORTHERN_AFRICA = 140;
|
956
|
public static int AREA_AFRO_TROPICAL_REGION = 141;
|
957
|
public static int AREA_AUSTRALIAN_REGION = 142;
|
958
|
public static int AREA_EAST_PALAEARCTIC = 143;
|
959
|
public static int AREA_NEARCTIC_REGION = 144;
|
960
|
public static int AREA_NEOTROPICAL_REGION = 145;
|
961
|
public static int AREA_NEAR_EAST = 146;
|
962
|
public static int AREA_ORIENTAL_REGION = 147;
|
963
|
public static int AREA_EUROPEAN_MARINE_WATERS = 148;
|
964
|
public static int AREA_MEDITERRANEAN_SEA = 149;
|
965
|
public static int AREA_WHITE_SEA = 150;
|
966
|
public static int AREA_NORTH_SEA = 151;
|
967
|
public static int AREA_BALTIC_SEA = 152;
|
968
|
public static int AREA_BLACK_SEA = 153;
|
969
|
public static int AREA_BARENTS_SEA = 154;
|
970
|
public static int AREA_CASPIAN_SEA = 155;
|
971
|
public static int AREA_PORTUGUESE_EXCLUSIVE_ECONOMIC_ZONE = 156;
|
972
|
public static int AREA_BELGIAN_EXCLUSIVE_ECONOMIC_ZONE = 157;
|
973
|
public static int AREA_FRENCH_EXCLUSIVE_ECONOMIC_ZONE = 158;
|
974
|
public static int AREA_ENGLISH_CHANNEL = 159;
|
975
|
public static int AREA_ADRIATIC_SEA = 160;
|
976
|
public static int AREA_BISCAY_BAY = 161;
|
977
|
public static int AREA_DUTCH_EXCLUSIVE_ECONOMIC_ZONE = 162;
|
978
|
public static int AREA_UNITED_KINGDOM_EXCLUSIVE_ECONOMIC_ZONE = 163;
|
979
|
public static int AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE = 164;
|
980
|
public static int AREA_EGYPTIAN_EXCLUSIVE_ECONOMIC_ZONE = 165;
|
981
|
public static int AREA_GRECIAN_EXCLUSIVE_ECONOMIC_ZONE = 166;
|
982
|
public static int AREA_TIRRENO_SEA = 167;
|
983
|
public static int AREA_ICELANDIC_EXCLUSIVE_ECONOMIC_ZONE = 168;
|
984
|
public static int AREA_IRISH_EXCLUSIVE_ECONOMIC_ZONE = 169;
|
985
|
public static int AREA_IRISH_SEA = 170;
|
986
|
public static int AREA_ITALIAN_EXCLUSIVE_ECONOMIC_ZONE = 171;
|
987
|
public static int AREA_NORWEGIAN_SEA = 172;
|
988
|
public static int AREA_MOROCCAN_EXCLUSIVE_ECONOMIC_ZONE = 173;
|
989
|
public static int AREA_NORWEGIAN_EXCLUSIVE_ECONOMIC_ZONE = 174;
|
990
|
public static int AREA_SKAGERRAK = 175;
|
991
|
public static int AREA_TUNISIAN_EXCLUSIVE_ECONOMIC_ZONE = 176;
|
992
|
public static int AREA_WADDEN_SEA = 177;
|
993
|
public static int AREA_BELT_SEA = 178;
|
994
|
public static int AREA_MARMARA_SEA = 179;
|
995
|
public static int AREA_SEA_OF_AZOV = 180;
|
996
|
public static int AREA_AEGEAN_SEA = 181;
|
997
|
public static int AREA_BULGARIAN_EXCLUSIVE_ECONOMIC_ZONE = 182;
|
998
|
public static int AREA_SOUTH_BALTIC_PROPER = 183;
|
999
|
public static int AREA_BALTIC_PROPER = 184;
|
1000
|
public static int AREA_NORTH_BALTIC_PROPER = 185;
|
1001
|
public static int AREA_ARCHIPELAGO_SEA = 186;
|
1002
|
public static int AREA_BOTHNIAN_SEA = 187;
|
1003
|
public static int AREA_GERMAN_EXCLUSIVE_ECONOMIC_ZONE = 188;
|
1004
|
public static int AREA_SWEDISH_EXCLUSIVE_ECONOMIC_ZONE = 189;
|
1005
|
public static int AREA_UKRAINIAN_EXCLUSIVE_ECONOMIC_ZONE = 190;
|
1006
|
public static int AREA_MADEIRAN_EXCLUSIVE_ECONOMIC_ZONE = 191;
|
1007
|
public static int AREA_LEBANESE_EXCLUSIVE_ECONOMIC_ZONE = 192;
|
1008
|
public static int AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE_MEDITERRANEAN_PART = 193;
|
1009
|
public static int AREA_ESTONIAN_EXCLUSIVE_ECONOMIC_ZONE = 194;
|
1010
|
public static int AREA_CROATIAN_EXCLUSIVE_ECONOMIC_ZONE = 195;
|
1011
|
public static int AREA_BALEAR_SEA = 196;
|
1012
|
public static int AREA_TURKISH_EXCLUSIVE_ECONOMIC_ZONE = 197;
|
1013
|
public static int AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE = 198;
|
1014
|
|
1015
|
|
1016
|
public static String STR_AREA_EAST_AEGEAN_ISLANDS = "East Aegean Islands";
|
1017
|
public static String STR_AREA_GREEK_EAST_AEGEAN_ISLANDS = "Greek East Aegean Islands";
|
1018
|
public static String STR_AREA_TURKISH_EAST_AEGEAN_ISLANDS = "Turkish East Aegean Islands";
|
1019
|
public static String STR_AREA_ALBANIA = "Albania";
|
1020
|
public static String STR_AREA_AUSTRIA_WITH_LIECHTENSTEIN = "Austria with Liechtenstein";
|
1021
|
public static String STR_AREA_AUSTRIA = "Austria";
|
1022
|
public static String STR_AREA_LIECHTENSTEIN = "Liechtenstein";
|
1023
|
public static String STR_AREA_AZORES = "Azores";
|
1024
|
public static String STR_AREA_CORVO = "Corvo";
|
1025
|
public static String STR_AREA_FAIAL = "Faial";
|
1026
|
public static String STR_AREA_GRACIOSA = "Graciosa";
|
1027
|
public static String STR_AREA_SAO_JORGE = "São Jorge";
|
1028
|
public static String STR_AREA_FLORES = "Flores";
|
1029
|
public static String STR_AREA_SAO_MIGUEL = "São Miguel";
|
1030
|
public static String STR_AREA_PICO = "Pico";
|
1031
|
public static String STR_AREA_SANTA_MARIA = "Santa Maria";
|
1032
|
public static String STR_AREA_TERCEIRA = "Terceira";
|
1033
|
public static String STR_AREA_BELGIUM_WITH_LUXEMBOURG = "Belgium with Luxembourg";
|
1034
|
public static String STR_AREA_BELGIUM = "Belgium";
|
1035
|
public static String STR_AREA_LUXEMBOURG = "Luxembourg";
|
1036
|
public static String STR_AREA_BOSNIA_HERZEGOVINA = "Bosnia-Herzegovina";
|
1037
|
public static String STR_AREA_BALEARES = "Baleares";
|
1038
|
public static String STR_AREA_IBIZA_WITH_FORMENTERA = "Ibiza with Formentera";
|
1039
|
public static String STR_AREA_MALLORCA = "Mallorca";
|
1040
|
public static String STR_AREA_MENORCA = "Menorca";
|
1041
|
public static String STR_AREA_GREAT_BRITAIN = "Great Britain";
|
1042
|
public static String STR_AREA_BALTIC_STATES_ESTONIA_LATVIA_LITHUANIA_AND_KALININGRAD_REGION = "Baltic states (Estonia, Latvia, Lithuania) and Kaliningrad region";
|
1043
|
public static String STR_AREA_BULGARIA = "Bulgaria";
|
1044
|
public static String STR_AREA_BELARUS = "Belarus";
|
1045
|
public static String STR_AREA_CANARY_ISLANDS = "Canary Islands";
|
1046
|
public static String STR_AREA_GRAN_CANARIA = "Gran Canaria";
|
1047
|
public static String STR_AREA_FUERTEVENTURA_WITH_LOBOS = "Fuerteventura with Lobos";
|
1048
|
public static String STR_AREA_GOMERA = "Gomera";
|
1049
|
public static String STR_AREA_HIERRO = "Hierro";
|
1050
|
public static String STR_AREA_LANZAROTE_WITH_GRACIOSA = "Lanzarote with Graciosa";
|
1051
|
public static String STR_AREA_LA_PALMA = "La Palma";
|
1052
|
public static String STR_AREA_TENERIFE = "Tenerife";
|
1053
|
public static String STR_AREA_MONTENEGRO = "Montenegro";
|
1054
|
public static String STR_AREA_CORSE = "Corse";
|
1055
|
public static String STR_AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS = "Crete with Karpathos, Kasos & Gavdhos";
|
1056
|
public static String STR_AREA_CZECH_REPUBLIC = "Czech Republic";
|
1057
|
public static String STR_AREA_CROATIA = "Croatia";
|
1058
|
public static String STR_AREA_CYPRUS = "Cyprus";
|
1059
|
public static String STR_AREA_FORMER_CZECHOSLOVAKIA = "Former Czechoslovakia";
|
1060
|
public static String STR_AREA_DENMARK_WITH_BORNHOLM = "Denmark with Bornholm";
|
1061
|
public static String STR_AREA_ESTONIA = "Estonia";
|
1062
|
public static String STR_AREA_FAROE_ISLANDS = "Faroe Islands";
|
1063
|
public static String STR_AREA_FINLAND_WITH_AHVENANMAA = "Finland with Ahvenanmaa";
|
1064
|
public static String STR_AREA_FRANCE = "France";
|
1065
|
public static String STR_AREA_CHANNEL_ISLANDS = "Channel Islands";
|
1066
|
public static String STR_AREA_FRENCH_MAINLAND = "French mainland";
|
1067
|
public static String STR_AREA_MONACO = "Monaco";
|
1068
|
public static String STR_AREA_GERMANY = "Germany";
|
1069
|
public static String STR_AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS = "Greece with Cyclades and more islands";
|
1070
|
public static String STR_AREA_IRELAND = "Ireland";
|
1071
|
public static String STR_AREA_REPUBLIC_OF_IRELAND = "Republic of Ireland";
|
1072
|
public static String STR_AREA_NORTHERN_IRELAND = "Northern Ireland";
|
1073
|
public static String STR_AREA_SWITZERLAND = "Switzerland";
|
1074
|
public static String STR_AREA_NETHERLANDS = "Netherlands";
|
1075
|
public static String STR_AREA_SPAIN = "Spain";
|
1076
|
public static String STR_AREA_ANDORRA = "Andorra";
|
1077
|
public static String STR_AREA_GIBRALTAR = "Gibraltar";
|
1078
|
public static String STR_AREA_KINGDOM_OF_SPAIN = "Kingdom of Spain";
|
1079
|
public static String STR_AREA_HUNGARY = "Hungary";
|
1080
|
public static String STR_AREA_ICELAND = "Iceland";
|
1081
|
public static String STR_AREA_ITALY = "Italy";
|
1082
|
public static String STR_AREA_ITALIAN_MAINLAND = "Italian mainland";
|
1083
|
public static String STR_AREA_SAN_MARINO = "San Marino";
|
1084
|
public static String STR_AREA_FORMER_JUGOSLAVIA = "Former Jugoslavia";
|
1085
|
public static String STR_AREA_LATVIA = "Latvia";
|
1086
|
public static String STR_AREA_LITHUANIA = "Lithuania";
|
1087
|
public static String STR_AREA_PORTUGUESE_MAINLAND = "Portuguese mainland";
|
1088
|
public static String STR_AREA_MADEIRA_ARCHIPELAGO = "Madeira";
|
1089
|
public static String STR_AREA_DESERTAS = "Desertas";
|
1090
|
public static String STR_AREA_MADEIRA = "Madeira";
|
1091
|
public static String STR_AREA_PORTO_SANTO = "Porto Santo";
|
1092
|
public static String STR_AREA_THE_FORMER_JUGOSLAV_REPUBLIC_OF_MAKEDONIJA = "The former Jugoslav Republic of Makedonija";
|
1093
|
public static String STR_AREA_MOLDOVA = "Moldova";
|
1094
|
public static String STR_AREA_NORWEGIAN_MAINLAND = "Norwegian mainland";
|
1095
|
public static String STR_AREA_POLAND = "Poland";
|
1096
|
public static String STR_AREA_THE_RUSSIAN_FEDERATION = "The Russian Federation";
|
1097
|
public static String STR_AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND = "Novaya Zemlya & Franz-Joseph Land";
|
1098
|
public static String STR_AREA_CENTRAL_EUROPEAN_RUSSIA = "Central European Russia";
|
1099
|
public static String STR_AREA_EASTERN_EUROPEAN_RUSSIA = "Eastern European Russia";
|
1100
|
public static String STR_AREA_KALININGRAD = "Kaliningrad";
|
1101
|
public static String STR_AREA_NORTHERN_EUROPEAN_RUSSIA = "Northern European Russia";
|
1102
|
public static String STR_AREA_NORTHWEST_EUROPEAN_RUSSIA = "Northwest European Russia";
|
1103
|
public static String STR_AREA_SOUTH_EUROPEAN_RUSSIA = "South European Russia";
|
1104
|
public static String STR_AREA_ROMANIA = "Romania";
|
1105
|
public static String STR_AREA_FORMER_USSR = "Former USSR";
|
1106
|
public static String STR_AREA_RUSSIA_BALTIC = "Russia Baltic";
|
1107
|
public static String STR_AREA_RUSSIA_CENTRAL = "Russia Central";
|
1108
|
public static String STR_AREA_RUSSIA_SOUTHEAST = "Russia Southeast";
|
1109
|
public static String STR_AREA_RUSSIA_NORTHERN = "Russia Northern";
|
1110
|
public static String STR_AREA_RUSSIA_SOUTHWEST = "Russia Southwest";
|
1111
|
public static String STR_AREA_SARDEGNA = "Sardegna";
|
1112
|
public static String STR_AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN = "Svalbard with Björnöya and Jan Mayen";
|
1113
|
public static String STR_AREA_SELVAGENS_ISLANDS = "Selvagens Islands";
|
1114
|
public static String STR_AREA_SICILY_WITH_MALTA = "Sicily with Malta";
|
1115
|
public static String STR_AREA_MALTA = "Malta";
|
1116
|
public static String STR_AREA_SICILY = "Sicily";
|
1117
|
public static String STR_AREA_SLOVAKIA = "Slovakia";
|
1118
|
public static String STR_AREA_SLOVENIA = "Slovenia";
|
1119
|
public static String STR_AREA_SERBIA_WITH_MONTENEGRO = "Serbia with Montenegro";
|
1120
|
public static String STR_AREA_SERBIA_INCLUDING_VOJVODINA_AND_WITH_KOSOVO = "Serbia including Vojvodina and with Kosovo";
|
1121
|
public static String STR_AREA_SWEDEN = "Sweden";
|
1122
|
public static String STR_AREA_EUROPEAN_TURKEY = "European Turkey";
|
1123
|
public static String STR_AREA_UKRAINE_INCLUDING_CRIMEA = "Ukraine including Crimea";
|
1124
|
public static String STR_AREA_CRIMEA = "Crimea";
|
1125
|
public static String STR_AREA_UKRAINE = "Ukraine";
|
1126
|
public static String STR_AREA_GREEK_MAINLAND = "Greek mainland";
|
1127
|
public static String STR_AREA_CRETE = "Crete";
|
1128
|
public static String STR_AREA_DODECANESE_ISLANDS = "Dodecanese Islands";
|
1129
|
public static String STR_AREA_CYCLADES_ISLANDS = "Cyclades Islands";
|
1130
|
public static String STR_AREA_NORTH_AEGEAN_ISLANDS = "North Aegean Islands";
|
1131
|
public static String STR_AREA_VATICAN_CITY = "Vatican City";
|
1132
|
public static String STR_AREA_FRANZ_JOSEF_LAND = "Franz Josef Land";
|
1133
|
public static String STR_AREA_NOVAYA_ZEMLYA = "Novaya Zemlya";
|
1134
|
public static String STR_AREA_AZERBAIJAN_INCLUDING_NAKHICHEVAN = "Azerbaijan including Nakhichevan";
|
1135
|
public static String STR_AREA_AZERBAIJAN = "Azerbaijan";
|
1136
|
public static String STR_AREA_NAKHICHEVAN = "Nakhichevan";
|
1137
|
public static String STR_AREA_ALGERIA = "Algeria";
|
1138
|
public static String STR_AREA_ARMENIA = "Armenia";
|
1139
|
public static String STR_AREA_CAUCASUS_REGION = "Caucasus region";
|
1140
|
public static String STR_AREA_EGYPT = "Egypt";
|
1141
|
public static String STR_AREA_GEORGIA = "Georgia";
|
1142
|
public static String STR_AREA_ISRAEL_JORDAN = "Israel-Jordan";
|
1143
|
public static String STR_AREA_ISRAEL = "Israel";
|
1144
|
public static String STR_AREA_JORDAN = "Jordan";
|
1145
|
public static String STR_AREA_LEBANON = "Lebanon";
|
1146
|
public static String STR_AREA_LIBYA = "Libya";
|
1147
|
public static String STR_AREA_LEBANON_SYRIA = "Lebanon-Syria";
|
1148
|
public static String STR_AREA_MOROCCO = "Morocco";
|
1149
|
public static String STR_AREA_NORTH_CAUCASUS = "North Caucasus";
|
1150
|
public static String STR_AREA_SINAI = "Sinai";
|
1151
|
public static String STR_AREA_SYRIA = "Syria";
|
1152
|
public static String STR_AREA_TUNISIA = "Tunisia";
|
1153
|
public static String STR_AREA_ASIATIC_TURKEY = "Asiatic Turkey";
|
1154
|
public static String STR_AREA_TURKEY = "Turkey";
|
1155
|
public static String STR_AREA_NORTHERN_AFRICA = "Northern Africa";
|
1156
|
public static String STR_AREA_AFRO_TROPICAL_REGION = "Afro-tropical region";
|
1157
|
public static String STR_AREA_AUSTRALIAN_REGION = "Australian region";
|
1158
|
public static String STR_AREA_EAST_PALAEARCTIC = "East Palaearctic";
|
1159
|
public static String STR_AREA_NEARCTIC_REGION = "Nearctic region";
|
1160
|
public static String STR_AREA_NEOTROPICAL_REGION = "Neotropical region";
|
1161
|
public static String STR_AREA_NEAR_EAST = "Near East";
|
1162
|
public static String STR_AREA_ORIENTAL_REGION = "Oriental region";
|
1163
|
public static String STR_AREA_EUROPEAN_MARINE_WATERS = "European Marine Waters";
|
1164
|
public static String STR_AREA_MEDITERRANEAN_SEA = "Mediterranean Sea";
|
1165
|
public static String STR_AREA_WHITE_SEA = "White Sea";
|
1166
|
public static String STR_AREA_NORTH_SEA = "North Sea";
|
1167
|
public static String STR_AREA_BALTIC_SEA = "Baltic Sea";
|
1168
|
public static String STR_AREA_BLACK_SEA = "Black Sea";
|
1169
|
public static String STR_AREA_BARENTS_SEA = "Barents Sea";
|
1170
|
public static String STR_AREA_CASPIAN_SEA = "Caspian Sea";
|
1171
|
public static String STR_AREA_PORTUGUESE_EXCLUSIVE_ECONOMIC_ZONE = "Portuguese Exclusive Economic Zone";
|
1172
|
public static String STR_AREA_BELGIAN_EXCLUSIVE_ECONOMIC_ZONE = "Belgian Exclusive Economic Zone";
|
1173
|
public static String STR_AREA_FRENCH_EXCLUSIVE_ECONOMIC_ZONE = "French Exclusive Economic Zone";
|
1174
|
public static String STR_AREA_ENGLISH_CHANNEL = "English Channel";
|
1175
|
public static String STR_AREA_ADRIATIC_SEA = "Adriatic Sea";
|
1176
|
public static String STR_AREA_BISCAY_BAY = "Biscay Bay";
|
1177
|
public static String STR_AREA_DUTCH_EXCLUSIVE_ECONOMIC_ZONE = "Dutch Exclusive Economic Zone";
|
1178
|
public static String STR_AREA_UNITED_KINGDOM_EXCLUSIVE_ECONOMIC_ZONE = "United Kingdom Exclusive Economic Zone";
|
1179
|
public static String STR_AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE = "Spanish Exclusive Economic Zone";
|
1180
|
public static String STR_AREA_EGYPTIAN_EXCLUSIVE_ECONOMIC_ZONE = "Egyptian Exclusive Economic Zone";
|
1181
|
public static String STR_AREA_GRECIAN_EXCLUSIVE_ECONOMIC_ZONE = "Grecian Exclusive Economic Zone";
|
1182
|
public static String STR_AREA_TIRRENO_SEA = "Tirreno Sea";
|
1183
|
public static String STR_AREA_ICELANDIC_EXCLUSIVE_ECONOMIC_ZONE = "Icelandic Exclusive Economic Zone";
|
1184
|
public static String STR_AREA_IRISH_EXCLUSIVE_ECONOMIC_ZONE = "Irish Exclusive economic Zone";
|
1185
|
public static String STR_AREA_IRISH_SEA = "Irish Sea";
|
1186
|
public static String STR_AREA_ITALIAN_EXCLUSIVE_ECONOMIC_ZONE = "Italian Exclusive Economic Zone";
|
1187
|
public static String STR_AREA_NORWEGIAN_SEA = "Norwegian Sea";
|
1188
|
public static String STR_AREA_MOROCCAN_EXCLUSIVE_ECONOMIC_ZONE = "Moroccan Exclusive Economic Zone";
|
1189
|
public static String STR_AREA_NORWEGIAN_EXCLUSIVE_ECONOMIC_ZONE = "Norwegian Exclusive Economic Zone";
|
1190
|
public static String STR_AREA_SKAGERRAK = "Skagerrak";
|
1191
|
public static String STR_AREA_TUNISIAN_EXCLUSIVE_ECONOMIC_ZONE = "Tunisian Exclusive Economic Zone";
|
1192
|
public static String STR_AREA_WADDEN_SEA = "Wadden Sea";
|
1193
|
public static String STR_AREA_BELT_SEA = "Belt Sea";
|
1194
|
public static String STR_AREA_MARMARA_SEA = "Marmara Sea";
|
1195
|
public static String STR_AREA_SEA_OF_AZOV = "Sea of Azov";
|
1196
|
public static String STR_AREA_AEGEAN_SEA = "Aegean Sea";
|
1197
|
public static String STR_AREA_BULGARIAN_EXCLUSIVE_ECONOMIC_ZONE = "Bulgarian Exclusive Economic Zone";
|
1198
|
public static String STR_AREA_SOUTH_BALTIC_PROPER = "South Baltic proper";
|
1199
|
public static String STR_AREA_BALTIC_PROPER = "Baltic Proper";
|
1200
|
public static String STR_AREA_NORTH_BALTIC_PROPER = "North Baltic proper";
|
1201
|
public static String STR_AREA_ARCHIPELAGO_SEA = "Archipelago Sea";
|
1202
|
public static String STR_AREA_BOTHNIAN_SEA = "Bothnian Sea";
|
1203
|
public static String STR_AREA_GERMAN_EXCLUSIVE_ECONOMIC_ZONE = "German Exclusive Economic Zone";
|
1204
|
public static String STR_AREA_SWEDISH_EXCLUSIVE_ECONOMIC_ZONE = "Swedish Exclusive Economic Zone";
|
1205
|
public static String STR_AREA_UKRAINIAN_EXCLUSIVE_ECONOMIC_ZONE = "Ukrainian Exclusive Economic Zone";
|
1206
|
public static String STR_AREA_MADEIRAN_EXCLUSIVE_ECONOMIC_ZONE = "Madeiran Exclusive Economic Zone";
|
1207
|
public static String STR_AREA_LEBANESE_EXCLUSIVE_ECONOMIC_ZONE = "Lebanese Exclusive Economic Zone";
|
1208
|
public static String STR_AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE_MEDITERRANEAN_PART = "Spanish Exclusive Economic Zone [Mediterranean part]";
|
1209
|
public static String STR_AREA_ESTONIAN_EXCLUSIVE_ECONOMIC_ZONE = "Estonian Exclusive Economic Zone";
|
1210
|
public static String STR_AREA_CROATIAN_EXCLUSIVE_ECONOMIC_ZONE = "Croatian Exclusive Economic Zone";
|
1211
|
public static String STR_AREA_BALEAR_SEA = "Balear Sea";
|
1212
|
public static String STR_AREA_TURKISH_EXCLUSIVE_ECONOMIC_ZONE = "Turkish Exclusive Economic Zone";
|
1213
|
public static String STR_AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE = "Danish Exclusive Economic Zone";
|
1214
|
|
1215
|
|
1216
|
|
1217
|
// OccurrenceStatus
|
1218
|
public static int STATUS_PRESENT = 1;
|
1219
|
public static int STATUS_ABSENT = 2;
|
1220
|
public static int STATUS_NATIVE = 3;
|
1221
|
public static int STATUS_INTRODUCED = 4;
|
1222
|
public static int STATUS_NATURALISED = 5;
|
1223
|
public static int STATUS_INVASIVE = 6;
|
1224
|
public static int STATUS_MANAGED = 7;
|
1225
|
public static int STATUS_DOUBTFUL = 8;
|
1226
|
|
1227
|
public static String STR_STATUS_PRESENT = "Present";
|
1228
|
public static String STR_STATUS_ABSENT = "Absent";
|
1229
|
public static String STR_STATUS_NATIVE = "Native";
|
1230
|
public static String STR_STATUS_INTRODUCED = "Introduced";
|
1231
|
public static String STR_STATUS_NATURALISED = "Naturalised";
|
1232
|
public static String STR_STATUS_INVASIVE = "Invasive";
|
1233
|
public static String STR_STATUS_MANAGED = "Managed";
|
1234
|
public static String STR_STATUS_DOUBTFUL = "Doubtful";
|
1235
|
|
1236
|
|
1237
|
/**
|
1238
|
* Converts the databaseString to its abbreviation if its known.
|
1239
|
* Otherwise the databaseString is returned.
|
1240
|
* @param databaseString
|
1241
|
* @return
|
1242
|
*/
|
1243
|
public static String databaseString2Abbreviation(String databaseString) {
|
1244
|
String result = databaseString;
|
1245
|
if (databaseString.equals("Fauna Europaea database")) {
|
1246
|
result = "FaEu";
|
1247
|
}
|
1248
|
return result;
|
1249
|
}
|
1250
|
|
1251
|
/**
|
1252
|
* Returns the OccurrenceStatusCache for a given PresenceAbsenceTerm.
|
1253
|
* @param term
|
1254
|
* @return
|
1255
|
* @throws UnknownCdmTypeException
|
1256
|
*/
|
1257
|
public static String presenceAbsenceTerm2OccurrenceStatusCache(PresenceAbsenceTermBase<?> term) {
|
1258
|
String result = null;
|
1259
|
if (term.isInstanceOf(PresenceTerm.class)) {
|
1260
|
PresenceTerm presenceTerm = CdmBase.deproxy(term, PresenceTerm.class);
|
1261
|
if (presenceTerm.equals(PresenceTerm.PRESENT())) {
|
1262
|
result = STR_STATUS_PRESENT;
|
1263
|
} else if (presenceTerm.equals(PresenceTerm.NATIVE())) {
|
1264
|
result = STR_STATUS_NATIVE;
|
1265
|
} else if (presenceTerm.equals(PresenceTerm.INTRODUCED())) {
|
1266
|
result = STR_STATUS_INTRODUCED;
|
1267
|
} else if (presenceTerm.equals(PresenceTerm.NATURALISED())) {
|
1268
|
result = STR_STATUS_NATURALISED;
|
1269
|
} else if (presenceTerm.equals(PresenceTerm.INVASIVE())) {
|
1270
|
result = STR_STATUS_INVASIVE;
|
1271
|
} else if (presenceTerm.equals(PresenceTerm.INTRODUCED_CULTIVATED())) {
|
1272
|
result = STR_STATUS_MANAGED;
|
1273
|
} else if (presenceTerm.equals(PresenceTerm.PRESENT_DOUBTFULLY())) {
|
1274
|
result = STR_STATUS_DOUBTFUL;
|
1275
|
} else {
|
1276
|
logger.error("PresenceTerm could not be translated to datawarehouse occurrence status id: " + presenceTerm.getLabel());
|
1277
|
}
|
1278
|
} else if (term.isInstanceOf(AbsenceTerm.class)) {
|
1279
|
AbsenceTerm absenceTerm = CdmBase.deproxy(term, AbsenceTerm.class);
|
1280
|
if (absenceTerm.equals(AbsenceTerm.ABSENT())) {
|
1281
|
result = STR_STATUS_ABSENT;
|
1282
|
} else {
|
1283
|
logger.error("AbsenceTerm could not be translated to datawarehouse occurrence status id: " + absenceTerm.getLabel());
|
1284
|
}
|
1285
|
}
|
1286
|
return result;
|
1287
|
}
|
1288
|
|
1289
|
/**
|
1290
|
* Returns the OccurrenceStatusId for a given PresenceAbsenceTerm.
|
1291
|
* @param term
|
1292
|
* @return
|
1293
|
* @throws UnknownCdmTypeException
|
1294
|
*/
|
1295
|
public static Integer presenceAbsenceTerm2OccurrenceStatusId(PresenceAbsenceTermBase<?> term) {
|
1296
|
Integer result = null;
|
1297
|
if (term.isInstanceOf(PresenceTerm.class)) {
|
1298
|
PresenceTerm presenceTerm = CdmBase.deproxy(term, PresenceTerm.class);
|
1299
|
if (presenceTerm.equals(PresenceTerm.PRESENT())) {
|
1300
|
result = STATUS_PRESENT;
|
1301
|
} else if (presenceTerm.equals(PresenceTerm.NATIVE())) {
|
1302
|
result = STATUS_NATIVE;
|
1303
|
} else if (presenceTerm.equals(PresenceTerm.INTRODUCED())) {
|
1304
|
result = STATUS_INTRODUCED;
|
1305
|
} else if (presenceTerm.equals(PresenceTerm.NATURALISED())) {
|
1306
|
result = STATUS_NATURALISED;
|
1307
|
} else if (presenceTerm.equals(PresenceTerm.INVASIVE())) {
|
1308
|
result = STATUS_INVASIVE;
|
1309
|
} else if (presenceTerm.equals(PresenceTerm.CULTIVATED())) {
|
1310
|
result = STATUS_MANAGED;
|
1311
|
} else if (presenceTerm.equals(PresenceTerm.PRESENT_DOUBTFULLY())) {
|
1312
|
result = STATUS_DOUBTFUL;
|
1313
|
} else {
|
1314
|
logger.error("PresenceTerm could not be translated to datawarehouse occurrence status id: " + presenceTerm.getLabel());
|
1315
|
}
|
1316
|
} else if (term.isInstanceOf(AbsenceTerm.class)) {
|
1317
|
AbsenceTerm absenceTerm = CdmBase.deproxy(term, AbsenceTerm.class);
|
1318
|
if (absenceTerm.equals(AbsenceTerm.ABSENT())) {
|
1319
|
result = STATUS_ABSENT;
|
1320
|
} else {
|
1321
|
logger.error("AbsenceTerm could not be translated to datawarehouse occurrence status id: " + absenceTerm.getLabel());
|
1322
|
}
|
1323
|
}
|
1324
|
return result;
|
1325
|
}
|
1326
|
|
1327
|
/**
|
1328
|
* Returns the AreaCache for a given Area.
|
1329
|
* @param area
|
1330
|
* @return
|
1331
|
*/
|
1332
|
public static String area2AreaCache(NamedArea area) {
|
1333
|
if (area == null) {
|
1334
|
return null;
|
1335
|
} else if (area.isInstanceOf(TdwgArea.class)) {
|
1336
|
NamedArea namedArea = CdmBase.deproxy(area, NamedArea.class);
|
1337
|
|
1338
|
// TODO: Areas identified by the string "TODO" (for now) have to be identified correctly after additions have been made to the list of NamedArea's according to specific imports, i.e. euro+med
|
1339
|
if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_EAST_AEGEAN_ISLANDS; }
|
1340
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("EAI")) { return STR_AREA_GREEK_EAST_AEGEAN_ISLANDS; }
|
1341
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("EAI-OO")) { return STR_AREA_GREEK_EAST_AEGEAN_ISLANDS; }
|
1342
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_TURKISH_EAST_AEGEAN_ISLANDS; }
|
1343
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ALB")) { return STR_AREA_ALBANIA; }
|
1344
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ALB-OO")) { return STR_AREA_ALBANIA; }
|
1345
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AUT")) { return STR_AREA_AUSTRIA_WITH_LIECHTENSTEIN; }
|
1346
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AUT-AU")) { return STR_AREA_AUSTRIA; }
|
1347
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AUT-LI")) { return STR_AREA_LIECHTENSTEIN; }
|
1348
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AZO")) { return STR_AREA_AZORES; }
|
1349
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AZO-OO")) { return STR_AREA_AZORES; }
|
1350
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_CORVO; }
|
1351
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_FAIAL; }
|
1352
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_GRACIOSA; }
|
1353
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_SAO_JORGE; }
|
1354
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_FLORES; }
|
1355
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_SAO_MIGUEL; }
|
1356
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_PICO; }
|
1357
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_SANTA_MARIA; }
|
1358
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_TERCEIRA; }
|
1359
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BGM")) { return STR_AREA_BELGIUM_WITH_LUXEMBOURG; }
|
1360
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BGM-BE")) { return STR_AREA_BELGIUM; }
|
1361
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BGM-LU")) { return STR_AREA_LUXEMBOURG; }
|
1362
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-BH")) { return STR_AREA_BOSNIA_HERZEGOVINA; }
|
1363
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BAL")) { return STR_AREA_BALEARES; }
|
1364
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BAL-OO")) { return STR_AREA_BALEARES; }
|
1365
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_IBIZA_WITH_FORMENTERA; }
|
1366
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_MALLORCA; }
|
1367
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_MENORCA; }
|
1368
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GRB")) { return STR_AREA_GREAT_BRITAIN; }
|
1369
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GRB-OO")) { return STR_AREA_GREAT_BRITAIN; }
|
1370
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLT")) { return STR_AREA_BALTIC_STATES_ESTONIA_LATVIA_LITHUANIA_AND_KALININGRAD_REGION; }
|
1371
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BUL")) { return STR_AREA_BULGARIA; }
|
1372
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BUL-OO")) { return STR_AREA_BULGARIA; }
|
1373
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLR")) { return STR_AREA_BELARUS; }
|
1374
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLR-OO")) { return STR_AREA_BELARUS; }
|
1375
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CNY")) { return STR_AREA_CANARY_ISLANDS; }
|
1376
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CNY-OO")) { return STR_AREA_CANARY_ISLANDS; }
|
1377
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_GRAN_CANARIA; }
|
1378
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_FUERTEVENTURA_WITH_LOBOS; }
|
1379
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_GOMERA; }
|
1380
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_HIERRO; }
|
1381
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_LANZAROTE_WITH_GRACIOSA; }
|
1382
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_LA_PALMA; }
|
1383
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_TENERIFE; }
|
1384
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-MN")) { return STR_AREA_MONTENEGRO; }
|
1385
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("COR")) { return STR_AREA_CORSE; }
|
1386
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("COR-OO")) { return STR_AREA_CORSE; }
|
1387
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("KRI")) { return STR_AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS; }
|
1388
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("KRI-OO")) { return STR_AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS; }
|
1389
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CZE-CZ")) { return STR_AREA_CZECH_REPUBLIC; }
|
1390
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-CR")) { return STR_AREA_CROATIA; }
|
1391
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CYP")) { return STR_AREA_CYPRUS; }
|
1392
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CYP-OO")) { return STR_AREA_CYPRUS; }
|
1393
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CZE")) { return STR_AREA_FORMER_CZECHOSLOVAKIA; }
|
1394
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("DEN")) { return STR_AREA_DENMARK_WITH_BORNHOLM; }
|
1395
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("DEN-OO")) { return STR_AREA_DENMARK_WITH_BORNHOLM; }
|
1396
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLT-ES")) { return STR_AREA_ESTONIA; }
|
1397
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FOR")) { return STR_AREA_FAROE_ISLANDS; }
|
1398
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FOR-OO")) { return STR_AREA_FAROE_ISLANDS; }
|
1399
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FIN")) { return STR_AREA_FINLAND_WITH_AHVENANMAA; }
|
1400
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FIN-OO")) { return STR_AREA_FINLAND_WITH_AHVENANMAA; }
|
1401
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FRA")) { return STR_AREA_FRANCE; }
|
1402
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FRA-CI")) { return STR_AREA_CHANNEL_ISLANDS; }
|
1403
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FRA-FR")) { return STR_AREA_FRENCH_MAINLAND; }
|
1404
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FRA-MO")) { return STR_AREA_MONACO; }
|
1405
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GER")) { return STR_AREA_GERMANY; }
|
1406
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GER-OO")) { return STR_AREA_GERMANY; }
|
1407
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GRC")) { return STR_AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS; }
|
1408
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GRC-OO")) { return STR_AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS; }
|
1409
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("IRE")) { return STR_AREA_IRELAND; }
|
1410
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("IRE-IR")) { return STR_AREA_REPUBLIC_OF_IRELAND; }
|
1411
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("IRE-NI")) { return STR_AREA_NORTHERN_IRELAND; }
|
1412
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SWI")) { return STR_AREA_SWITZERLAND; }
|
1413
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SWI-OO")) { return STR_AREA_SWITZERLAND; }
|
1414
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NET")) { return STR_AREA_NETHERLANDS; }
|
1415
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NET-OO")) { return STR_AREA_NETHERLANDS; }
|
1416
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SPA")) { return STR_AREA_SPAIN; }
|
1417
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SPA-AN")) { return STR_AREA_ANDORRA; }
|
1418
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SPA-GI")) { return STR_AREA_GIBRALTAR; }
|
1419
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SPA-SP")) { return STR_AREA_KINGDOM_OF_SPAIN; }
|
1420
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("HUN")) { return STR_AREA_HUNGARY; }
|
1421
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("HUN-OO")) { return STR_AREA_HUNGARY; }
|
1422
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ICE")) { return STR_AREA_ICELAND; }
|
1423
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ICE-OO")) { return STR_AREA_ICELAND; }
|
1424
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ITA")) { return STR_AREA_ITALY; }
|
1425
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ITA-IT")) { return STR_AREA_ITALIAN_MAINLAND; }
|
1426
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ITA-SM")) { return STR_AREA_SAN_MARINO; }
|
1427
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG")) { return STR_AREA_FORMER_JUGOSLAVIA; }
|
1428
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLT-LA")) { return STR_AREA_LATVIA; }
|
1429
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLT-LI")) { return STR_AREA_LITHUANIA; }
|
1430
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("POR")) { return STR_AREA_PORTUGUESE_MAINLAND; }
|
1431
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("POR-OO")) { return STR_AREA_PORTUGUESE_MAINLAND; }
|
1432
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("MDR")) { return STR_AREA_MADEIRA; }
|
1433
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("MDR-OO")) { return STR_AREA_MADEIRA; }
|
1434
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_DESERTAS; }
|
1435
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_PORTO_SANTO; }
|
1436
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-MA")) { return STR_AREA_THE_FORMER_JUGOSLAV_REPUBLIC_OF_MAKEDONIJA; }
|
1437
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("UKR-MO")) { return STR_AREA_MOLDOVA; }
|
1438
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NOR")) { return STR_AREA_NORWEGIAN_MAINLAND; }
|
1439
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NOR-OO")) { return STR_AREA_NORWEGIAN_MAINLAND; }
|
1440
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("POL")) { return STR_AREA_POLAND; }
|
1441
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("POL-OO")) { return STR_AREA_POLAND; }
|
1442
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUS")) { return STR_AREA_THE_RUSSIAN_FEDERATION; }
|
1443
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("WSB")) { return STR_AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND; }
|
1444
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("WSB-OO")) { return STR_AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND; }
|
1445
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUC")) { return STR_AREA_CENTRAL_EUROPEAN_RUSSIA; }
|
1446
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUC-OO")) { return STR_AREA_CENTRAL_EUROPEAN_RUSSIA; }
|
1447
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUE")) { return STR_AREA_EASTERN_EUROPEAN_RUSSIA; }
|
1448
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUE-OO")) { return STR_AREA_EASTERN_EUROPEAN_RUSSIA; }
|
1449
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLT-KA")) { return STR_AREA_KALININGRAD; }
|
1450
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUN")) { return STR_AREA_NORTHERN_EUROPEAN_RUSSIA; }
|
1451
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUN-OO")) { return STR_AREA_NORTHERN_EUROPEAN_RUSSIA; }
|
1452
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUW")) { return STR_AREA_NORTHWEST_EUROPEAN_RUSSIA; }
|
1453
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUW-OO")) { return STR_AREA_NORTHWEST_EUROPEAN_RUSSIA; }
|
1454
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUS")) { return STR_AREA_SOUTH_EUROPEAN_RUSSIA; }
|
1455
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUS-OO")) { return STR_AREA_SOUTH_EUROPEAN_RUSSIA; }
|
1456
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ROM")) { return STR_AREA_ROMANIA; }
|
1457
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ROM-OO")) { return STR_AREA_ROMANIA; }
|
1458
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_FORMER_USSR; }
|
1459
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_RUSSIA_BALTIC; }
|
1460
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUC")) { return STR_AREA_RUSSIA_CENTRAL; }
|
1461
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_RUSSIA_SOUTHEAST; }
|
1462
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUN")) { return STR_AREA_RUSSIA_NORTHERN; }
|
1463
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_RUSSIA_SOUTHWEST; }
|
1464
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SAR")) { return STR_AREA_SARDEGNA; }
|
1465
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SAR-OO")) { return STR_AREA_SARDEGNA; }
|
1466
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SVA")) { return STR_AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN; }
|
1467
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SVA-OO")) { return STR_AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN; }
|
1468
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SEL")) { return STR_AREA_SELVAGENS_ISLANDS; }
|
1469
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SEL-OO")) { return STR_AREA_SELVAGENS_ISLANDS; }
|
1470
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SIC")) { return STR_AREA_SICILY_WITH_MALTA; }
|
1471
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SIC-MA")) { return STR_AREA_MALTA; }
|
1472
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SIC-SI")) { return STR_AREA_SICILY; }
|
1473
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CZE-SK")) { return STR_AREA_SLOVAKIA; }
|
1474
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-SL")) { return STR_AREA_SLOVENIA; }
|
1475
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CS")) { return STR_AREA_SERBIA_WITH_MONTENEGRO; }
|
1476
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-SE")) { return STR_AREA_SERBIA_INCLUDING_VOJVODINA_AND_WITH_KOSOVO; }
|
1477
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SWE")) { return STR_AREA_SWEDEN; }
|
1478
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SWE-OO")) { return STR_AREA_SWEDEN; }
|
1479
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUE")) { return STR_AREA_EUROPEAN_TURKEY; }
|
1480
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUE-OO")) { return STR_AREA_EUROPEAN_TURKEY; }
|
1481
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_UKRAINE_INCLUDING_CRIMEA; }
|
1482
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("KRY")) { return STR_AREA_CRIMEA; }
|
1483
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("KRY-OO")) { return STR_AREA_CRIMEA; }
|
1484
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("UKR-UK")) { return STR_AREA_UKRAINE; }
|
1485
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GRE")) { return STR_AREA_GREEK_MAINLAND; }
|
1486
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GR-KRI")) { return STR_AREA_CRETE; }
|
1487
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GR-DOD")) { return STR_AREA_DODECANESE_ISLANDS; }
|
1488
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GR-CYC")) { return STR_AREA_CYCLADES_ISLANDS; }
|
1489
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GR-AEG")) { return STR_AREA_NORTH_AEGEAN_ISLANDS; }
|
1490
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ITA-VC")) { return STR_AREA_VATICAN_CITY; }
|
1491
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_FRANZ_JOSEF_LAND; }
|
1492
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_NOVAYA_ZEMLYA; }
|
1493
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AZ")) { return STR_AREA_AZERBAIJAN_INCLUDING_NAKHICHEVAN; }
|
1494
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TCS-AZ")) { return STR_AREA_AZERBAIJAN; }
|
1495
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TCS-NA")) { return STR_AREA_NAKHICHEVAN; }
|
1496
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ALG")) { return STR_AREA_ALGERIA; }
|
1497
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ALG-OO")) { return STR_AREA_ALGERIA; }
|
1498
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TCS-AR")) { return STR_AREA_ARMENIA; }
|
1499
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("33")) { return STR_AREA_CAUCASUS_REGION; }
|
1500
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("EGY")) { return STR_AREA_EGYPT; }
|
1501
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("EGY-OO")) { return STR_AREA_EGYPT; }
|
1502
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_GEORGIA; }
|
1503
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("PAL")) { return STR_AREA_ISRAEL_JORDAN; }
|
1504
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("PAL-IS")) { return STR_AREA_ISRAEL; }
|
1505
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("PAL-JO")) { return STR_AREA_JORDAN; }
|
1506
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("LBS-LB")) { return STR_AREA_LEBANON; }
|
1507
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("LBY-OO")) { return STR_AREA_LIBYA; }
|
1508
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("LBS")) { return STR_AREA_LEBANON_SYRIA; }
|
1509
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("MOR")) { return STR_AREA_MOROCCO; }
|
1510
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NCS")) { return STR_AREA_NORTH_CAUCASUS; }
|
1511
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SIN")) { return STR_AREA_SINAI; }
|
1512
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SIN-OO")) { return STR_AREA_SINAI; }
|
1513
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("LBS-SY")) { return STR_AREA_SYRIA; }
|
1514
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUN")) { return STR_AREA_TUNISIA; }
|
1515
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUN-OO")) { return STR_AREA_TUNISIA; }
|
1516
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_ASIATIC_TURKEY; }
|
1517
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_ASIATIC_TURKEY; }
|
1518
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUR")) { return STR_AREA_TURKEY; }
|
1519
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUR-OO")) { return STR_AREA_TURKEY; }
|
1520
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("20")) { return STR_AREA_NORTHERN_AFRICA; }
|
1521
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AFR")) { return STR_AREA_AFRO_TROPICAL_REGION; }
|
1522
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AUS")) { return STR_AREA_AUSTRALIAN_REGION; }
|
1523
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_EAST_PALAEARCTIC; }
|
1524
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NEA")) { return STR_AREA_NEARCTIC_REGION; }
|
1525
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NEO")) { return STR_AREA_NEOTROPICAL_REGION; }
|
1526
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NRE")) { return STR_AREA_NEAR_EAST; }
|
1527
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ORR")) { return STR_AREA_ORIENTAL_REGION; }
|
1528
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidEuropeanMarineWaters)) { return STR_AREA_EUROPEAN_MARINE_WATERS; }
|
1529
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("MES") ||
|
1530
|
(namedArea.getUuid().equals(ErmsTransformer.uuidMediterraneanSea))) { return STR_AREA_MEDITERRANEAN_SEA; } // abbreviated label missing
|
1531
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidWhiteSea)) { return STR_AREA_WHITE_SEA; }
|
1532
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorthSea)) { return STR_AREA_NORTH_SEA; }
|
1533
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBalticSea)) { return STR_AREA_BALTIC_SEA; }
|
1534
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLS") ||
|
1535
|
(namedArea.getUuid().equals(ErmsTransformer.uuidBlackSea))) { return STR_AREA_BLACK_SEA; } // abbreviated label missing
|
1536
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBarentsSea)) { return STR_AREA_BARENTS_SEA; }
|
1537
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CAS") ||
|
1538
|
(namedArea.getUuid().equals(ErmsTransformer.uuidCaspianSea))) { return STR_AREA_CASPIAN_SEA; } // abbreviated label missing
|
1539
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidPortugueseExclusiveEconomicZone)) { return STR_AREA_PORTUGUESE_EXCLUSIVE_ECONOMIC_ZONE; }
|
1540
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBelgianExclusiveEconomicZone)) { return STR_AREA_BELGIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1541
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidFrenchExclusiveEconomicZone)) { return STR_AREA_FRENCH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1542
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidEnglishChannel)) { return STR_AREA_ENGLISH_CHANNEL; }
|
1543
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidAdriaticSea)) { return STR_AREA_ADRIATIC_SEA; }
|
1544
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBiscayBay)) { return STR_AREA_BISCAY_BAY; }
|
1545
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidDutchExclusiveEconomicZone)) { return STR_AREA_DUTCH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1546
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidUnitedKingdomExclusiveEconomicZone)) { return STR_AREA_UNITED_KINGDOM_EXCLUSIVE_ECONOMIC_ZONE; }
|
1547
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSpanishExclusiveEconomicZone)) { return STR_AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1548
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidEgyptianExclusiveEconomicZone)) { return STR_AREA_EGYPTIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1549
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidGrecianExclusiveEconomicZone)) { return STR_AREA_GRECIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1550
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidTirrenoSea)) { return STR_AREA_TIRRENO_SEA; }
|
1551
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidIcelandicExclusiveEconomicZone)) { return STR_AREA_ICELANDIC_EXCLUSIVE_ECONOMIC_ZONE; }
|
1552
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidIrishExclusiveeconomicZone)) { return STR_AREA_IRISH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1553
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidIrishSea)) { return STR_AREA_IRISH_SEA; }
|
1554
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidItalianExclusiveEconomicZone)) { return STR_AREA_ITALIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1555
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorwegianSea)) { return STR_AREA_NORWEGIAN_SEA; }
|
1556
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidMoroccanExclusiveEconomicZone)) { return STR_AREA_MOROCCAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1557
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorwegianExclusiveEconomicZone)) { return STR_AREA_NORWEGIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1558
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSkagerrak)) { return STR_AREA_SKAGERRAK; }
|
1559
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidTunisianExclusiveEconomicZone)) { return STR_AREA_TUNISIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1560
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidWaddenSea)) { return STR_AREA_WADDEN_SEA; }
|
1561
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBeltSea)) { return STR_AREA_BELT_SEA; }
|
1562
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidMarmaraSea)) { return STR_AREA_MARMARA_SEA; }
|
1563
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSeaofAzov)) { return STR_AREA_SEA_OF_AZOV; }
|
1564
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidAegeanSea)) { return STR_AREA_AEGEAN_SEA; }
|
1565
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBulgarianExclusiveEconomicZone)) { return STR_AREA_BULGARIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1566
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSouthBalticproper)) { return STR_AREA_SOUTH_BALTIC_PROPER; }
|
1567
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBalticProper)) { return STR_AREA_BALTIC_PROPER; }
|
1568
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorthBalticproper)) { return STR_AREA_NORTH_BALTIC_PROPER; }
|
1569
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidArchipelagoSea)) { return STR_AREA_ARCHIPELAGO_SEA; }
|
1570
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBothnianSea)) { return STR_AREA_BOTHNIAN_SEA; }
|
1571
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidGermanExclusiveEconomicZone)) { return STR_AREA_GERMAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1572
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSwedishExclusiveEconomicZone)) { return STR_AREA_SWEDISH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1573
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidUkrainianExclusiveEconomicZone)) { return STR_AREA_UKRAINIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1574
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidMadeiranExclusiveEconomicZone)) { return STR_AREA_MADEIRAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1575
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidLebaneseExclusiveEconomicZone)) { return STR_AREA_LEBANESE_EXCLUSIVE_ECONOMIC_ZONE; }
|
1576
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSpanishExclusiveEconomicZoneMediterraneanpart)) { return STR_AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE_MEDITERRANEAN_PART; }
|
1577
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidEstonianExclusiveEconomicZone)) { return STR_AREA_ESTONIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1578
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidCroatianExclusiveEconomicZone)) { return STR_AREA_CROATIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1579
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBalearSea)) { return STR_AREA_BALEAR_SEA; }
|
1580
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidTurkishExclusiveEconomicZone)) { return STR_AREA_TURKISH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1581
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidDanishExclusiveEconomicZone)) { return STR_AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1582
|
else {
|
1583
|
logger.error("Unknown NamedArea Area: " + area.getTitleCache());
|
1584
|
return null; // Actually the export has to stop here because AreaFk's are not allowed to be NULL.
|
1585
|
}
|
1586
|
}
|
1587
|
return null; // Actually the export has to stop here because AreaFk's are not allowed to be NULL.
|
1588
|
|
1589
|
}
|
1590
|
|
1591
|
/**
|
1592
|
* Returns the AreaId for a given Area.
|
1593
|
* @param area
|
1594
|
* @return
|
1595
|
*/
|
1596
|
public static Integer area2AreaId(NamedArea area) {
|
1597
|
if (area == null) {
|
1598
|
return null;
|
1599
|
} else if (area.isInstanceOf(TdwgArea.class)) {
|
1600
|
NamedArea namedArea = CdmBase.deproxy(area, NamedArea.class);
|
1601
|
|
1602
|
// TODO: Areas identified by the string "TODO" (for now) have to be identified correctly after additions have been made to the list of NamedArea's according to specific imports, i.e. euro+med
|
1603
|
if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_EAST_AEGEAN_ISLANDS; }
|
1604
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("EAI")) { return AREA_GREEK_EAST_AEGEAN_ISLANDS; }
|
1605
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("EAI-OO")) { return AREA_GREEK_EAST_AEGEAN_ISLANDS; }
|
1606
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_TURKISH_EAST_AEGEAN_ISLANDS; }
|
1607
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ALB")) { return AREA_ALBANIA; }
|
1608
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ALB-OO")) { return AREA_ALBANIA; }
|
1609
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AUT")) { return AREA_AUSTRIA_WITH_LIECHTENSTEIN; }
|
1610
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AUT-AU")) { return AREA_AUSTRIA; }
|
1611
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AUT-LI")) { return AREA_LIECHTENSTEIN; }
|
1612
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AZO")) { return AREA_AZORES; }
|
1613
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AZO-OO")) { return AREA_AZORES; }
|
1614
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_CORVO; }
|
1615
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_FAIAL; }
|
1616
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_GRACIOSA; }
|
1617
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_SAO_JORGE; }
|
1618
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_FLORES; }
|
1619
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_SAO_MIGUEL; }
|
1620
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_PICO; }
|
1621
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_SANTA_MARIA; }
|
1622
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_TERCEIRA; }
|
1623
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BGM")) { return AREA_BELGIUM_WITH_LUXEMBOURG; }
|
1624
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BGM-BE")) { return AREA_BELGIUM; }
|
1625
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BGM-LU")) { return AREA_LUXEMBOURG; }
|
1626
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-BH")) { return AREA_BOSNIA_HERZEGOVINA; }
|
1627
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BAL")) { return AREA_BALEARES; }
|
1628
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BAL-OO")) { return AREA_BALEARES; }
|
1629
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_IBIZA_WITH_FORMENTERA; }
|
1630
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_MALLORCA; }
|
1631
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_MENORCA; }
|
1632
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GRB")) { return AREA_GREAT_BRITAIN; }
|
1633
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GRB-OO")) { return AREA_GREAT_BRITAIN; }
|
1634
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLT")) { return AREA_BALTIC_STATES_ESTONIA_LATVIA_LITHUANIA_AND_KALININGRAD_REGION; }
|
1635
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BUL")) { return AREA_BULGARIA; }
|
1636
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BUL-OO")) { return AREA_BULGARIA; }
|
1637
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLR")) { return AREA_BELARUS; }
|
1638
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLR-OO")) { return AREA_BELARUS; }
|
1639
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CNY")) { return AREA_CANARY_ISLANDS; }
|
1640
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CNY-OO")) { return AREA_CANARY_ISLANDS; }
|
1641
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_GRAN_CANARIA; }
|
1642
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_FUERTEVENTURA_WITH_LOBOS; }
|
1643
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_GOMERA; }
|
1644
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_HIERRO; }
|
1645
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_LANZAROTE_WITH_GRACIOSA; }
|
1646
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_LA_PALMA; }
|
1647
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_TENERIFE; }
|
1648
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-MN")) { return AREA_MONTENEGRO; }
|
1649
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("COR")) { return AREA_CORSE; }
|
1650
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("COR-OO")) { return AREA_CORSE; }
|
1651
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("KRI")) { return AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS; }
|
1652
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("KRI-OO")) { return AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS; }
|
1653
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CZE-CZ")) { return AREA_CZECH_REPUBLIC; }
|
1654
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-CR")) { return AREA_CROATIA; }
|
1655
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CYP")) { return AREA_CYPRUS; }
|
1656
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CYP-OO")) { return AREA_CYPRUS; }
|
1657
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CZE")) { return AREA_FORMER_CZECHOSLOVAKIA; }
|
1658
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("DEN")) { return AREA_DENMARK_WITH_BORNHOLM; }
|
1659
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("DEN-OO")) { return AREA_DENMARK_WITH_BORNHOLM; }
|
1660
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLT-ES")) { return AREA_ESTONIA; }
|
1661
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FOR")) { return AREA_FAROE_ISLANDS; }
|
1662
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FOR-OO")) { return AREA_FAROE_ISLANDS; }
|
1663
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FIN")) { return AREA_FINLAND_WITH_AHVENANMAA; }
|
1664
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FIN-OO")) { return AREA_FINLAND_WITH_AHVENANMAA; }
|
1665
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FRA")) { return AREA_FRANCE; }
|
1666
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FRA-CI")) { return AREA_CHANNEL_ISLANDS; }
|
1667
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FRA-FR")) { return AREA_FRENCH_MAINLAND; }
|
1668
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("FRA-MO")) { return AREA_MONACO; }
|
1669
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GER")) { return AREA_GERMANY; }
|
1670
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GER-OO")) { return AREA_GERMANY; }
|
1671
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GRC")) { return AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS; }
|
1672
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GRC-OO")) { return AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS; }
|
1673
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("IRE")) { return AREA_IRELAND; }
|
1674
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("IRE-IR")) { return AREA_REPUBLIC_OF_IRELAND; }
|
1675
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("IRE-NI")) { return AREA_NORTHERN_IRELAND; }
|
1676
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SWI")) { return AREA_SWITZERLAND; }
|
1677
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SWI-OO")) { return AREA_SWITZERLAND; }
|
1678
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NET")) { return AREA_NETHERLANDS; }
|
1679
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NET-OO")) { return AREA_NETHERLANDS; }
|
1680
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SPA")) { return AREA_SPAIN; }
|
1681
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SPA-AN")) { return AREA_ANDORRA; }
|
1682
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SPA-GI")) { return AREA_GIBRALTAR; }
|
1683
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SPA-SP")) { return AREA_KINGDOM_OF_SPAIN; }
|
1684
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("HUN")) { return AREA_HUNGARY; }
|
1685
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("HUN-OO")) { return AREA_HUNGARY; }
|
1686
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ICE")) { return AREA_ICELAND; }
|
1687
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ICE-OO")) { return AREA_ICELAND; }
|
1688
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ITA")) { return AREA_ITALY; }
|
1689
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ITA-IT")) { return AREA_ITALIAN_MAINLAND; }
|
1690
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ITA-SM")) { return AREA_SAN_MARINO; }
|
1691
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG")) { return AREA_FORMER_JUGOSLAVIA; }
|
1692
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLT-LA")) { return AREA_LATVIA; }
|
1693
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLT-LI")) { return AREA_LITHUANIA; }
|
1694
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("POR")) { return AREA_PORTUGUESE_MAINLAND; }
|
1695
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("POR-OO")) { return AREA_PORTUGUESE_MAINLAND; }
|
1696
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("MDR")) { return AREA_MADEIRA; }
|
1697
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("MDR-OO")) { return AREA_MADEIRA; }
|
1698
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_DESERTAS; }
|
1699
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_PORTO_SANTO; }
|
1700
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-MA")) { return AREA_THE_FORMER_JUGOSLAV_REPUBLIC_OF_MAKEDONIJA; }
|
1701
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("UKR-MO")) { return AREA_MOLDOVA; }
|
1702
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NOR")) { return AREA_NORWEGIAN_MAINLAND; }
|
1703
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NOR-OO")) { return AREA_NORWEGIAN_MAINLAND; }
|
1704
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("POL")) { return AREA_POLAND; }
|
1705
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("POL-OO")) { return AREA_POLAND; }
|
1706
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUS")) { return AREA_THE_RUSSIAN_FEDERATION; }
|
1707
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("WSB")) { return AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND; }
|
1708
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("WSB-OO")) { return AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND; }
|
1709
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUC")) { return AREA_CENTRAL_EUROPEAN_RUSSIA; }
|
1710
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUC-OO")) { return AREA_CENTRAL_EUROPEAN_RUSSIA; }
|
1711
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUE")) { return AREA_EASTERN_EUROPEAN_RUSSIA; }
|
1712
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUE-OO")) { return AREA_EASTERN_EUROPEAN_RUSSIA; }
|
1713
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLT-KA")) { return AREA_KALININGRAD; }
|
1714
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUN")) { return AREA_NORTHERN_EUROPEAN_RUSSIA; }
|
1715
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUN-OO")) { return AREA_NORTHERN_EUROPEAN_RUSSIA; }
|
1716
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUW")) { return AREA_NORTHWEST_EUROPEAN_RUSSIA; }
|
1717
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUW-OO")) { return AREA_NORTHWEST_EUROPEAN_RUSSIA; }
|
1718
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUS")) { return AREA_SOUTH_EUROPEAN_RUSSIA; }
|
1719
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUS-OO")) { return AREA_SOUTH_EUROPEAN_RUSSIA; }
|
1720
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ROM")) { return AREA_ROMANIA; }
|
1721
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ROM-OO")) { return AREA_ROMANIA; }
|
1722
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_FORMER_USSR; }
|
1723
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_RUSSIA_BALTIC; }
|
1724
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUC")) { return AREA_RUSSIA_CENTRAL; }
|
1725
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_RUSSIA_SOUTHEAST; }
|
1726
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("RUN")) { return AREA_RUSSIA_NORTHERN; }
|
1727
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_RUSSIA_SOUTHWEST; }
|
1728
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SAR")) { return AREA_SARDEGNA; }
|
1729
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SAR-OO")) { return AREA_SARDEGNA; }
|
1730
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SVA")) { return AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN; }
|
1731
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SVA-OO")) { return AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN; }
|
1732
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SEL")) { return AREA_SELVAGENS_ISLANDS; }
|
1733
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SEL-OO")) { return AREA_SELVAGENS_ISLANDS; }
|
1734
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SIC")) { return AREA_SICILY_WITH_MALTA; }
|
1735
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SIC-MA")) { return AREA_MALTA; }
|
1736
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SIC-SI")) { return AREA_SICILY; }
|
1737
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CZE-SK")) { return AREA_SLOVAKIA; }
|
1738
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-SL")) { return AREA_SLOVENIA; }
|
1739
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CS")) { return AREA_SERBIA_WITH_MONTENEGRO; }
|
1740
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("YUG-SE")) { return AREA_SERBIA_INCLUDING_VOJVODINA_AND_WITH_KOSOVO; }
|
1741
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SWE")) { return AREA_SWEDEN; }
|
1742
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SWE-OO")) { return AREA_SWEDEN; }
|
1743
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUE")) { return AREA_EUROPEAN_TURKEY; }
|
1744
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUE-OO")) { return AREA_EUROPEAN_TURKEY; }
|
1745
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_UKRAINE_INCLUDING_CRIMEA; }
|
1746
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("KRY")) { return AREA_CRIMEA; }
|
1747
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("KRY-OO")) { return AREA_CRIMEA; }
|
1748
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("UKR-UK")) { return AREA_UKRAINE; }
|
1749
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GRE")) { return AREA_GREEK_MAINLAND; }
|
1750
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GR-KRI")) { return AREA_CRETE; }
|
1751
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GR-DOD")) { return AREA_DODECANESE_ISLANDS; }
|
1752
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GR-CYC")) { return AREA_CYCLADES_ISLANDS; }
|
1753
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("GR-AEG")) { return AREA_NORTH_AEGEAN_ISLANDS; }
|
1754
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ITA-VC")) { return AREA_VATICAN_CITY; }
|
1755
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_FRANZ_JOSEF_LAND; }
|
1756
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_NOVAYA_ZEMLYA; }
|
1757
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AZ")) { return AREA_AZERBAIJAN_INCLUDING_NAKHICHEVAN; }
|
1758
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TCS-AZ")) { return AREA_AZERBAIJAN; }
|
1759
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TCS-NA")) { return AREA_NAKHICHEVAN; }
|
1760
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ALG")) { return AREA_ALGERIA; }
|
1761
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ALG-OO")) { return AREA_ALGERIA; }
|
1762
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TCS-AR")) { return AREA_ARMENIA; }
|
1763
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("33")) { return AREA_CAUCASUS_REGION; }
|
1764
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("EGY")) { return AREA_EGYPT; }
|
1765
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("EGY-OO")) { return AREA_EGYPT; }
|
1766
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_GEORGIA; }
|
1767
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("PAL")) { return AREA_ISRAEL_JORDAN; }
|
1768
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("PAL-IS")) { return AREA_ISRAEL; }
|
1769
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("PAL-JO")) { return AREA_JORDAN; }
|
1770
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("LBS-LB")) { return AREA_LEBANON; }
|
1771
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("LBY-OO")) { return AREA_LIBYA; }
|
1772
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("LBS")) { return AREA_LEBANON_SYRIA; }
|
1773
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("MOR")) { return AREA_MOROCCO; }
|
1774
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NCS")) { return AREA_NORTH_CAUCASUS; }
|
1775
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SIN")) { return AREA_SINAI; }
|
1776
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("SIN-OO")) { return AREA_SINAI; }
|
1777
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("LBS-SY")) { return AREA_SYRIA; }
|
1778
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUN")) { return AREA_TUNISIA; }
|
1779
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUN-OO")) { return AREA_TUNISIA; }
|
1780
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_ASIATIC_TURKEY; }
|
1781
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_ASIATIC_TURKEY; }
|
1782
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUR")) { return AREA_TURKEY; }
|
1783
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TUR-OO")) { return AREA_TURKEY; }
|
1784
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("20")) { return AREA_NORTHERN_AFRICA; }
|
1785
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AFR")) { return AREA_AFRO_TROPICAL_REGION; }
|
1786
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("AUS")) { return AREA_AUSTRALIAN_REGION; }
|
1787
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_EAST_PALAEARCTIC; }
|
1788
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NEA")) { return AREA_NEARCTIC_REGION; }
|
1789
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NEO")) { return AREA_NEOTROPICAL_REGION; }
|
1790
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("NRE")) { return AREA_NEAR_EAST; }
|
1791
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("ORR")) { return AREA_ORIENTAL_REGION; }
|
1792
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidEuropeanMarineWaters)) { return AREA_EUROPEAN_MARINE_WATERS; }
|
1793
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("MES") ||
|
1794
|
(namedArea.getUuid().equals(ErmsTransformer.uuidMediterraneanSea))) { return AREA_MEDITERRANEAN_SEA; } // abbreviated label missing
|
1795
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidWhiteSea)) { return AREA_WHITE_SEA; }
|
1796
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorthSea)) { return AREA_NORTH_SEA; }
|
1797
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBalticSea)) { return AREA_BALTIC_SEA; }
|
1798
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("BLS") ||
|
1799
|
(namedArea.getUuid().equals(ErmsTransformer.uuidBlackSea))) { return AREA_BLACK_SEA; } // abbreviated label missing
|
1800
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBarentsSea)) { return AREA_BARENTS_SEA; }
|
1801
|
else if ((namedArea.getRepresentation(Language.DEFAULT()).getAbbreviatedLabel()).equals("CAS") ||
|
1802
|
(namedArea.getUuid().equals(ErmsTransformer.uuidCaspianSea))) { return AREA_CASPIAN_SEA; } // abbreviated label missing
|
1803
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidPortugueseExclusiveEconomicZone)) { return AREA_PORTUGUESE_EXCLUSIVE_ECONOMIC_ZONE; }
|
1804
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBelgianExclusiveEconomicZone)) { return AREA_BELGIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1805
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidFrenchExclusiveEconomicZone)) { return AREA_FRENCH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1806
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidEnglishChannel)) { return AREA_ENGLISH_CHANNEL; }
|
1807
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidAdriaticSea)) { return AREA_ADRIATIC_SEA; }
|
1808
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBiscayBay)) { return AREA_BISCAY_BAY; }
|
1809
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidDutchExclusiveEconomicZone)) { return AREA_DUTCH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1810
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidUnitedKingdomExclusiveEconomicZone)) { return AREA_UNITED_KINGDOM_EXCLUSIVE_ECONOMIC_ZONE; }
|
1811
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSpanishExclusiveEconomicZone)) { return AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1812
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidEgyptianExclusiveEconomicZone)) { return AREA_EGYPTIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1813
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidGrecianExclusiveEconomicZone)) { return AREA_GRECIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1814
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidTirrenoSea)) { return AREA_TIRRENO_SEA; }
|
1815
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidIcelandicExclusiveEconomicZone)) { return AREA_ICELANDIC_EXCLUSIVE_ECONOMIC_ZONE; }
|
1816
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidIrishExclusiveeconomicZone)) { return AREA_IRISH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1817
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidIrishSea)) { return AREA_IRISH_SEA; }
|
1818
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidItalianExclusiveEconomicZone)) { return AREA_ITALIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1819
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorwegianSea)) { return AREA_NORWEGIAN_SEA; }
|
1820
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidMoroccanExclusiveEconomicZone)) { return AREA_MOROCCAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1821
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorwegianExclusiveEconomicZone)) { return AREA_NORWEGIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1822
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSkagerrak)) { return AREA_SKAGERRAK; }
|
1823
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidTunisianExclusiveEconomicZone)) { return AREA_TUNISIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1824
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidWaddenSea)) { return AREA_WADDEN_SEA; }
|
1825
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBeltSea)) { return AREA_BELT_SEA; }
|
1826
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidMarmaraSea)) { return AREA_MARMARA_SEA; }
|
1827
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSeaofAzov)) { return AREA_SEA_OF_AZOV; }
|
1828
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidAegeanSea)) { return AREA_AEGEAN_SEA; }
|
1829
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBulgarianExclusiveEconomicZone)) { return AREA_BULGARIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1830
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSouthBalticproper)) { return AREA_SOUTH_BALTIC_PROPER; }
|
1831
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBalticProper)) { return AREA_BALTIC_PROPER; }
|
1832
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidNorthBalticproper)) { return AREA_NORTH_BALTIC_PROPER; }
|
1833
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidArchipelagoSea)) { return AREA_ARCHIPELAGO_SEA; }
|
1834
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBothnianSea)) { return AREA_BOTHNIAN_SEA; }
|
1835
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidGermanExclusiveEconomicZone)) { return AREA_GERMAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1836
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSwedishExclusiveEconomicZone)) { return AREA_SWEDISH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1837
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidUkrainianExclusiveEconomicZone)) { return AREA_UKRAINIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1838
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidMadeiranExclusiveEconomicZone)) { return AREA_MADEIRAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1839
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidLebaneseExclusiveEconomicZone)) { return AREA_LEBANESE_EXCLUSIVE_ECONOMIC_ZONE; }
|
1840
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidSpanishExclusiveEconomicZoneMediterraneanpart)) { return AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE_MEDITERRANEAN_PART; }
|
1841
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidEstonianExclusiveEconomicZone)) { return AREA_ESTONIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1842
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidCroatianExclusiveEconomicZone)) { return AREA_CROATIAN_EXCLUSIVE_ECONOMIC_ZONE; }
|
1843
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidBalearSea)) { return AREA_BALEAR_SEA; }
|
1844
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidTurkishExclusiveEconomicZone)) { return AREA_TURKISH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1845
|
else if (namedArea.getUuid().equals(ErmsTransformer.uuidDanishExclusiveEconomicZone)) { return AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE; }
|
1846
|
else {
|
1847
|
logger.error("Unknown NamedArea Area: " + area.getTitleCache());
|
1848
|
}
|
1849
|
}
|
1850
|
return null;
|
1851
|
|
1852
|
}
|
1853
|
|
1854
|
/**
|
1855
|
* Returns the PESI SourceUseId for a given CDM sourceUseId.
|
1856
|
* @param sourceUseId
|
1857
|
* @return
|
1858
|
*/
|
1859
|
public static Integer sourceUseIdSourceUseId(Integer sourceUseId) {
|
1860
|
// TODO: CDM sourceUseId and PESI sourceUseId are equal for now.
|
1861
|
Integer result = null;
|
1862
|
switch (sourceUseId) {
|
1863
|
case 3: return ADDITIONAL_SOURCE;
|
1864
|
case 4: return SOURCE_OF_SYNONYMY;
|
1865
|
case 8: return NOMENCLATURAL_REFERENCE;
|
1866
|
}
|
1867
|
return result;
|
1868
|
}
|
1869
|
|
1870
|
/**
|
1871
|
* Returns the SourceUseCache for a tiven sourceUseId.
|
1872
|
* @param sourceUseId
|
1873
|
* @return
|
1874
|
*/
|
1875
|
public static String sourceUseId2SourceUseCache(Integer sourceUseId) {
|
1876
|
// TODO: CDM sourceUseId and PESI sourceUseId are equal for now.
|
1877
|
String result = null;
|
1878
|
switch (sourceUseId) {
|
1879
|
case 3: return STR_ADDITIONAL_SOURCE;
|
1880
|
case 4: return STR_SOURCE_OF_SYNONYMY;
|
1881
|
case 8: return STR_NOMENCLATURAL_REFERENCE;
|
1882
|
}
|
1883
|
return result;
|
1884
|
}
|
1885
|
|
1886
|
/**
|
1887
|
* Returns the FossilStatusCache to a given Fossil.
|
1888
|
* @param fossil
|
1889
|
* @return
|
1890
|
*/
|
1891
|
public static String fossil2FossilStatusCache(Fossil fossil) {
|
1892
|
String result = null;
|
1893
|
return result;
|
1894
|
}
|
1895
|
|
1896
|
/**
|
1897
|
* Returns the FossilStatusId to a given Fossil.
|
1898
|
* @param fossil
|
1899
|
* @return
|
1900
|
*/
|
1901
|
public static Integer fossil2FossilStatusId(Fossil fossil) {
|
1902
|
Integer result = null;
|
1903
|
return result;
|
1904
|
}
|
1905
|
|
1906
|
/**
|
1907
|
* Returns the LanguageCache to a given Language.
|
1908
|
* @param language
|
1909
|
* @return
|
1910
|
*/
|
1911
|
public static String language2LanguageCache(Language language) {
|
1912
|
if (language == null ) {
|
1913
|
return null;
|
1914
|
}
|
1915
|
if (language.equals(Language.ALBANIAN())) {
|
1916
|
return STR_LANGUAGE_ALBANIAN;
|
1917
|
} else if (language.equals(Language.ARABIC())) {
|
1918
|
return STR_LANGUAGE_ARABIC;
|
1919
|
} else if (language.equals(Language.ARMENIAN())) {
|
1920
|
return STR_LANGUAGE_ARMENIAN;
|
1921
|
} else if (language.equals(Language.AZERBAIJANI())) {
|
1922
|
return STR_LANGUAGE_AZERBAIJAN;
|
1923
|
} else if (language.equals(Language.BELORUSSIAN())) {
|
1924
|
return STR_LANGUAGE_BELARUSIAN;
|
1925
|
} else if (language.equals(Language.BULGARIAN())) {
|
1926
|
return STR_LANGUAGE_BULGARIAN;
|
1927
|
} else if (language.equals(Language.CATALAN_VALENCIAN())) {
|
1928
|
return STR_LANGUAGE_CATALAN;
|
1929
|
} else if (language.equals(Language.CROATIAN())) {
|
1930
|
return STR_LANGUAGE_CROAT;
|
1931
|
} else if (language.equals(Language.CZECH())) {
|
1932
|
return STR_LANGUAGE_CZECH;
|
1933
|
} else if (language.equals(Language.DANISH())) {
|
1934
|
return STR_LANGUAGE_DANISH;
|
1935
|
} else if (language.equals(Language.DUTCH_MIDDLE())) {
|
1936
|
return STR_LANGUAGE_DUTCH;
|
1937
|
} else if (language.equals(Language.ENGLISH())) {
|
1938
|
return STR_LANGUAGE_ENGLISH;
|
1939
|
// } else if (language.equals(Language.)) {
|
1940
|
// return STR_LANGUAGE_EUSKERA;
|
1941
|
} else if (language.equals(Language.ESTONIAN())) {
|
1942
|
return STR_LANGUAGE_ESTONIAN;
|
1943
|
} else if (language.equals(Language.FINNISH())) {
|
1944
|
return STR_LANGUAGE_FINNISH;
|
1945
|
} else if (language.equals(Language.FRENCH())) {
|
1946
|
return STR_LANGUAGE_FRENCH;
|
1947
|
} else if (language.equals(Language.GEORGIAN())) {
|
1948
|
return STR_LANGUAGE_GEORGIAN;
|
1949
|
} else if (language.equals(Language.GERMAN())) {
|
1950
|
return STR_LANGUAGE_GERMAN;
|
1951
|
} else if (language.equals(Language.GREEK_MODERN())) {
|
1952
|
return STR_LANGUAGE_GREEK;
|
1953
|
} else if (language.equals(Language.HUNGARIAN())) {
|
1954
|
return STR_LANGUAGE_HUNGARIAN;
|
1955
|
} else if (language.equals(Language.ICELANDIC())) {
|
1956
|
return STR_LANGUAGE_ICELANDIC;
|
1957
|
} else if (language.equals(Language.IRISH())) {
|
1958
|
return STR_LANGUAGE_IRISH_GAELIC;
|
1959
|
} else if (language.equals(Language.HEBREW())) {
|
1960
|
return STR_LANGUAGE_ISRAEL_HEBREW;
|
1961
|
} else if (language.equals(Language.ITALIAN())) {
|
1962
|
return STR_LANGUAGE_ITALIAN;
|
1963
|
} else if (language.equals(Language.LATVIAN())) {
|
1964
|
return STR_LANGUAGE_LATVIAN;
|
1965
|
} else if (language.equals(Language.LITHUANIAN())) {
|
1966
|
return STR_LANGUAGE_LITHUANIAN;
|
1967
|
} else if (language.equals(Language.MACEDONIAN())) {
|
1968
|
return STR_LANGUAGE_MACEDONIAN;
|
1969
|
} else if (language.equals(Language.MALTESE())) {
|
1970
|
return STR_LANGUAGE_MALTESE;
|
1971
|
} else if (language.equals(Language.MOLDAVIAN())) {
|
1972
|
return STR_LANGUAGE_MOLDOVIAN;
|
1973
|
} else if (language.equals(Language.NORWEGIAN())) {
|
1974
|
return STR_LANGUAGE_NORWEGIAN;
|
1975
|
} else if (language.equals(Language.POLISH())) {
|
1976
|
return STR_LANGUAGE_POLISH;
|
1977
|
} else if (language.equals(Language.PORTUGUESE())) {
|
1978
|
return STR_LANGUAGE_PORTUGUESE;
|
1979
|
} else if (language.equals(Language.ROMANIAN())) {
|
1980
|
return STR_LANGUAGE_ROUMANIAN;
|
1981
|
} else if (language.equals(Language.RUSSIAN())) {
|
1982
|
return STR_LANGUAGE_RUSSIAN;
|
1983
|
// } else if (language.equals(Language.)) {
|
1984
|
// return STR_LANGUAGE_RUSSIAN_CAUCASIAN;
|
1985
|
// } else if (language.equals(Language.)) {
|
1986
|
// return STR_LANGUAGE_RUSSIAN_ALTAIC_KALMYK_OIRAT;
|
1987
|
// } else if (language.equals(Language.)) {
|
1988
|
// return STR_LANGUAGE_RUSSIAN_ALTAIC_KARACHAY_BALKAR;
|
1989
|
// } else if (language.equals(Language.)) {
|
1990
|
// return STR_LANGUAGE_RUSSIAN_ALTAIC_KUMYK;
|
1991
|
// } else if (language.equals(Language.)) {
|
1992
|
// return STR_LANGUAGE_RUSSIAN_ALTAIC_NOGAI;
|
1993
|
// } else if (language.equals(Language.)) {
|
1994
|
// return STR_LANGUAGE_RUSSIAN_ALTAIC_NORTH_AZERBAIJANI;
|
1995
|
// } else if (language.equals(Language.)) {
|
1996
|
// return STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_RUSSIAN;
|
1997
|
// } else if (language.equals(Language.)) {
|
1998
|
// return STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_KALMYK_OIRAT;
|
1999
|
// } else if (language.equals(Language.)) {
|
2000
|
// return STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_OSETIN;
|
2001
|
// } else if (language.equals(Language.)) {
|
2002
|
// return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_ABAZA;
|
2003
|
// } else if (language.equals(Language.)) {
|
2004
|
// return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_ADYGHE;
|
2005
|
// } else if (language.equals(Language.)) {
|
2006
|
// return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_CHECHEN;
|
2007
|
// } else if (language.equals(Language.)) {
|
2008
|
// return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_KABARDIAN;
|
2009
|
// } else if (language.equals(Language.)) {
|
2010
|
// return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_LAK;
|
2011
|
// } else if (language.equals(Language.)) {
|
2012
|
// return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_AVAR;
|
2013
|
// } else if (language.equals(Language.)) {
|
2014
|
// return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_IN;
|
2015
|
// } else if (language.equals(Language.)) {
|
2016
|
// return STR_LANGUAGE_RUSSIAN_URALIC_CHUVASH;
|
2017
|
// } else if (language.equals(Language.)) {
|
2018
|
// return STR_LANGUAGE_RUSSIAN_URALIC_UDMURT;
|
2019
|
} else if (language.equals(Language.SERBIAN())) {
|
2020
|
return STR_LANGUAGE_SERBIAN;
|
2021
|
} else if (language.equals(Language.SLOVAK())) {
|
2022
|
return STR_LANGUAGE_SLOVAK;
|
2023
|
} else if (language.equals(Language.SLOVENIAN())) {
|
2024
|
return STR_LANGUAGE_SLOVENE;
|
2025
|
} else if (language.equals(Language.SPANISH_CATALAN())) {
|
2026
|
return STR_LANGUAGE_SPANISH_CASTILLIAN;
|
2027
|
} else if (language.equals(Language.SWEDISH())) {
|
2028
|
return STR_LANGUAGE_SWEDISH;
|
2029
|
} else if (language.equals(Language.TURKISH())) {
|
2030
|
return STR_LANGUAGE_TURKISH;
|
2031
|
} else if (language.equals(Language.UKRAINIAN())) {
|
2032
|
return STR_LANGUAGE_UKRAINE;
|
2033
|
} else if (language.equals(Language.WELSH())) {
|
2034
|
return STR_LANGUAGE_WELSH;
|
2035
|
} else if (language.equals(Language.CORSICAN())) {
|
2036
|
return STR_LANGUAGE_CORSICAN;
|
2037
|
} else {
|
2038
|
logger.debug("Unknown Language: " + language.getTitleCache());
|
2039
|
return null;
|
2040
|
}
|
2041
|
}
|
2042
|
|
2043
|
/**
|
2044
|
* Returns the identifier of the given Language.
|
2045
|
* @param language
|
2046
|
* @return
|
2047
|
*/
|
2048
|
public static Integer language2LanguageId(Language language) {
|
2049
|
if (language == null ) {
|
2050
|
return null;
|
2051
|
}
|
2052
|
if (language.equals(Language.ALBANIAN())) {
|
2053
|
return Language_Albanian;
|
2054
|
} else if (language.equals(Language.ARABIC())) {
|
2055
|
return Language_Arabic;
|
2056
|
} else if (language.equals(Language.ARMENIAN())) {
|
2057
|
return Language_Armenian;
|
2058
|
} else if (language.equals(Language.AZERBAIJANI())) {
|
2059
|
return Language_Azerbaijan;
|
2060
|
} else if (language.equals(Language.BELORUSSIAN())) {
|
2061
|
return Language_Belarusian;
|
2062
|
} else if (language.equals(Language.BULGARIAN())) {
|
2063
|
return Language_Bulgarian;
|
2064
|
} else if (language.equals(Language.CATALAN_VALENCIAN())) {
|
2065
|
return Language_Catalan;
|
2066
|
} else if (language.equals(Language.CROATIAN())) {
|
2067
|
return Language_Croat;
|
2068
|
} else if (language.equals(Language.CZECH())) {
|
2069
|
return Language_Czech;
|
2070
|
} else if (language.equals(Language.DANISH())) {
|
2071
|
return Language_Danish;
|
2072
|
} else if (language.equals(Language.DUTCH_MIDDLE())) {
|
2073
|
return Language_Dutch;
|
2074
|
} else if (language.equals(Language.ENGLISH())) {
|
2075
|
return Language_English;
|
2076
|
// } else if (language.equals(Language.)) {
|
2077
|
// return Language_Euskera;
|
2078
|
} else if (language.equals(Language.ESTONIAN())) {
|
2079
|
return Language_Estonian;
|
2080
|
} else if (language.equals(Language.FINNISH())) {
|
2081
|
return Language_Finnish;
|
2082
|
} else if (language.equals(Language.FRENCH())) {
|
2083
|
return Language_French;
|
2084
|
} else if (language.equals(Language.GEORGIAN())) {
|
2085
|
return Language_Georgian;
|
2086
|
} else if (language.equals(Language.GERMAN())) {
|
2087
|
return Language_German;
|
2088
|
} else if (language.equals(Language.GREEK_MODERN())) {
|
2089
|
return Language_Greek;
|
2090
|
} else if (language.equals(Language.HUNGARIAN())) {
|
2091
|
return Language_Hungarian;
|
2092
|
} else if (language.equals(Language.ICELANDIC())) {
|
2093
|
return Language_Icelandic;
|
2094
|
} else if (language.equals(Language.IRISH())) {
|
2095
|
return Language_Irish_Gaelic;
|
2096
|
} else if (language.equals(Language.HEBREW())) {
|
2097
|
return Language_Israel_Hebrew;
|
2098
|
} else if (language.equals(Language.ITALIAN())) {
|
2099
|
return Language_Italian;
|
2100
|
} else if (language.equals(Language.LATVIAN())) {
|
2101
|
return Language_Latvian;
|
2102
|
} else if (language.equals(Language.LITHUANIAN())) {
|
2103
|
return Language_Lithuanian;
|
2104
|
} else if (language.equals(Language.MACEDONIAN())) {
|
2105
|
return Language_Macedonian;
|
2106
|
} else if (language.equals(Language.MALTESE())) {
|
2107
|
return Language_Maltese;
|
2108
|
} else if (language.equals(Language.MOLDAVIAN())) {
|
2109
|
return Language_Moldovian;
|
2110
|
} else if (language.equals(Language.NORWEGIAN())) {
|
2111
|
return Language_Norwegian;
|
2112
|
} else if (language.equals(Language.POLISH())) {
|
2113
|
return Language_Polish;
|
2114
|
} else if (language.equals(Language.PORTUGUESE())) {
|
2115
|
return Language_Portuguese;
|
2116
|
} else if (language.equals(Language.ROMANIAN())) {
|
2117
|
return Language_Roumanian;
|
2118
|
} else if (language.equals(Language.RUSSIAN())) {
|
2119
|
return Language_Russian;
|
2120
|
// } else if (language.equals(Language.)) {
|
2121
|
// return Language_Russian_Caucasian;
|
2122
|
// } else if (language.equals(Language.)) {
|
2123
|
// return Language_Russian_Altaic_kalmyk_oirat;
|
2124
|
// } else if (language.equals(Language.)) {
|
2125
|
// return Language_Russian_Altaic_karachay_balkar;
|
2126
|
// } else if (language.equals(Language.)) {
|
2127
|
// return Language_Russian_Altaic_kumyk;
|
2128
|
// } else if (language.equals(Language.)) {
|
2129
|
// return Language_Russian_Altaic_nogai;
|
2130
|
// } else if (language.equals(Language.)) {
|
2131
|
// return Language_Russian_Altaic_north_azerbaijani;
|
2132
|
// } else if (language.equals(Language.)) {
|
2133
|
// return Language_Russian_Indo_european_russian;
|
2134
|
// } else if (language.equals(Language.)) {
|
2135
|
// return Language_Russian_Indo_european_kalmyk_oirat;
|
2136
|
// } else if (language.equals(Language.)) {
|
2137
|
// return Language_Russian_Indo_european_osetin;
|
2138
|
// } else if (language.equals(Language.)) {
|
2139
|
// return Language_Russian_North_caucasian_abaza;
|
2140
|
// } else if (language.equals(Language.)) {
|
2141
|
// return Language_Russian_North_caucasian_adyghe;
|
2142
|
// } else if (language.equals(Language.)) {
|
2143
|
// return Language_Russian_North_caucasian_chechen;
|
2144
|
// } else if (language.equals(Language.)) {
|
2145
|
// return Language_Russian_North_caucasian_kabardian;
|
2146
|
// } else if (language.equals(Language.)) {
|
2147
|
// return Language_Russian_North_caucasian_lak;
|
2148
|
// } else if (language.equals(Language.)) {
|
2149
|
// return Language_Russian_North_caucasian_avar;
|
2150
|
// } else if (language.equals(Language.)) {
|
2151
|
// return Language_Russian_North_caucasian_in;
|
2152
|
// } else if (language.equals(Language.)) {
|
2153
|
// return Language_Russian_Uralic_chuvash;
|
2154
|
// } else if (language.equals(Language.)) {
|
2155
|
// return Language_Russian_Uralic_udmurt;
|
2156
|
} else if (language.equals(Language.SERBIAN())) {
|
2157
|
return Language_Serbian;
|
2158
|
} else if (language.equals(Language.SLOVAK())) {
|
2159
|
return Language_Slovak;
|
2160
|
} else if (language.equals(Language.SLOVENIAN())) {
|
2161
|
return Language_Slovene;
|
2162
|
} else if (language.equals(Language.SPANISH_CATALAN())) {
|
2163
|
return Language_Spanish_Castillian;
|
2164
|
} else if (language.equals(Language.SWEDISH())) {
|
2165
|
return Language_Swedish;
|
2166
|
} else if (language.equals(Language.TURKISH())) {
|
2167
|
return Language_Turkish;
|
2168
|
} else if (language.equals(Language.UKRAINIAN())) {
|
2169
|
return Language_Ukraine;
|
2170
|
} else if (language.equals(Language.WELSH())) {
|
2171
|
return Language_Welsh;
|
2172
|
} else if (language.equals(Language.CORSICAN())) {
|
2173
|
return Language_Corsican;
|
2174
|
} else {
|
2175
|
logger.debug("Unknown Language: " + language.getTitleCache());
|
2176
|
return null;
|
2177
|
}
|
2178
|
}
|
2179
|
|
2180
|
/**
|
2181
|
* Returns the NodeCategoryCache for a given TextData.
|
2182
|
* @param feature
|
2183
|
* @return
|
2184
|
*/
|
2185
|
public static String textData2NodeCategoryCache(Feature feature) {
|
2186
|
if (feature == null) {
|
2187
|
return null;
|
2188
|
}
|
2189
|
|
2190
|
if (feature.equals(Feature.DESCRIPTION())) {
|
2191
|
return NoteCategory_STR_description;
|
2192
|
} else if (feature.equals(Feature.ECOLOGY())) {
|
2193
|
return NoteCategory_STR_ecology;
|
2194
|
} else if (feature.equals(Feature.PHENOLOGY())) {
|
2195
|
return NoteCategory_STR_phenology;
|
2196
|
} else if (feature.equals(Feature.COMMON_NAME())) {
|
2197
|
return NoteCategory_STR_Common_names;
|
2198
|
} else if (feature.equals(Feature.OCCURRENCE())) {
|
2199
|
return NoteCategory_STR_Occurrence;
|
2200
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidRemark)) {
|
2201
|
return NoteCategory_STR_Remark;
|
2202
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidAdditionalinformation)) {
|
2203
|
return NoteCategory_STR_Additional_information;
|
2204
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidSpelling)) {
|
2205
|
return NoteCategory_STR_Spelling;
|
2206
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidDateofPublication)) {
|
2207
|
return NoteCategory_STR_Date_of_publication;
|
2208
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidSystematics)) {
|
2209
|
return NoteCategory_STR_Systematics;
|
2210
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidClassification)) {
|
2211
|
return NoteCategory_STR_Classification;
|
2212
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidEnvironment)) {
|
2213
|
return NoteCategory_STR_Environment;
|
2214
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidHabitat)) {
|
2215
|
return NoteCategory_STR_Habitat;
|
2216
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidAuthority)) {
|
2217
|
return NoteCategory_STR_Authority;
|
2218
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidMorphology)) {
|
2219
|
return NoteCategory_STR_Morphology;
|
2220
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidTaxonomicRemarks)) {
|
2221
|
return NoteCategory_STR_Taxonomic_Remarks;
|
2222
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidNote)){
|
2223
|
return NoteCategory_STR_Note;
|
2224
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidTaxonomy)) {
|
2225
|
return NoteCategory_STR_Taxonomy;
|
2226
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidTaxonomicstatus)) {
|
2227
|
return NoteCategory_STR_Taxonomic_status;
|
2228
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidStatus)){
|
2229
|
return NoteCategory_STR_Status;
|
2230
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidRank)) {
|
2231
|
return NoteCategory_STR_Rank;
|
2232
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidHomonymy)) {
|
2233
|
return NoteCategory_STR_Homonymy;
|
2234
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidNomenclature)) {
|
2235
|
return NoteCategory_STR_Nomenclature;
|
2236
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidTaxonomicRemark)) {
|
2237
|
return NoteCategory_STR_Taxonomic_Remark;
|
2238
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidAcknowledgments)){
|
2239
|
return NoteCategory_STR_Acknowledgments;
|
2240
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidOriginalpublication)) {
|
2241
|
return NoteCategory_STR_Original_publication;
|
2242
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidTypelocality)) {
|
2243
|
return NoteCategory_STR_Type_locality;
|
2244
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidValidity)) {
|
2245
|
return NoteCategory_STR_Validity;
|
2246
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidIdentification)) {
|
2247
|
return NoteCategory_STR_Identification;
|
2248
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidSynonymy)) {
|
2249
|
return NoteCategory_STR_Synonymy;
|
2250
|
// } else if (feature.equals(Feature.CITATION())) {
|
2251
|
// return;
|
2252
|
|
2253
|
// TODO: Unknown NodeCategories
|
2254
|
// NoteCategory_STR_general_distribution_euromed = 10;
|
2255
|
// NoteCategory_STR_general_distribution_world = 11;
|
2256
|
// NoteCategory_STR_Common_names = 12;
|
2257
|
// NoteCategory_STR_Maps =14;
|
2258
|
// NoteCategory_STR_Link_to_maps = 20;
|
2259
|
// NoteCategory_STR_Link_to_images = 21;
|
2260
|
// NoteCategory_STR_Link_to_taxonomy = 22;
|
2261
|
// NoteCategory_STR_Link_to_general_information = 23;
|
2262
|
// NoteCategory_STR_undefined_link = 24;
|
2263
|
// NoteCategory_STR_Editor_Braces = 249;
|
2264
|
// NoteCategory_STR_Editor_Brackets = 250;
|
2265
|
// NoteCategory_STR_Editor_Parenthesis = 251;
|
2266
|
// NoteCategory_STR_Inedited = 252;
|
2267
|
// NoteCategory_STR_Comments_on_editing_process = 253;
|
2268
|
// NoteCategory_STR_Publication_date = 254;
|
2269
|
// NoteCategory_STR_Distribution = 278;
|
2270
|
// NoteCategory_STR_Biology = 281;
|
2271
|
// NoteCategory_STR_Diagnosis = 282;
|
2272
|
// NoteCategory_STR_Host = 283;
|
2273
|
|
2274
|
} else {
|
2275
|
logger.debug("Unknown Feature.");
|
2276
|
return null;
|
2277
|
}
|
2278
|
}
|
2279
|
|
2280
|
/**
|
2281
|
* Returns the NodeCategoryFk for a given TextData.
|
2282
|
* @param feature
|
2283
|
* @return
|
2284
|
*/
|
2285
|
public static Integer feature2NodeCategoryFk(Feature feature) {
|
2286
|
if (feature == null) {
|
2287
|
return null;
|
2288
|
}
|
2289
|
|
2290
|
if (feature.equals(Feature.DESCRIPTION())) {
|
2291
|
return NoteCategory_description;
|
2292
|
} else if (feature.equals(Feature.ECOLOGY())) {
|
2293
|
return NoteCategory_ecology;
|
2294
|
} else if (feature.equals(Feature.PHENOLOGY())) {
|
2295
|
return NoteCategory_phenology;
|
2296
|
} else if (feature.equals(Feature.COMMON_NAME())) {
|
2297
|
return NoteCategory_Common_names;
|
2298
|
} else if (feature.equals(Feature.OCCURRENCE())) {
|
2299
|
return NoteCategory_Occurrence;
|
2300
|
} else if (feature.equals(Feature.DISTRIBUTION())) {
|
2301
|
return NoteCategory_Distribution;
|
2302
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidRemark)) {
|
2303
|
return NoteCategory_Remark;
|
2304
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidAdditionalinformation)) {
|
2305
|
return NoteCategory_Additional_information;
|
2306
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidSpelling)) {
|
2307
|
return NoteCategory_Spelling;
|
2308
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidDateofPublication)) {
|
2309
|
return NoteCategory_Date_of_publication;
|
2310
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidSystematics)) {
|
2311
|
return NoteCategory_Systematics;
|
2312
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidClassification)) {
|
2313
|
return NoteCategory_Classification;
|
2314
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidEnvironment)) {
|
2315
|
return NoteCategory_Environment;
|
2316
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidHabitat)) {
|
2317
|
return NoteCategory_Habitat;
|
2318
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidAuthority)) {
|
2319
|
return NoteCategory_Authority;
|
2320
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidMorphology)) {
|
2321
|
return NoteCategory_Morphology;
|
2322
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidTaxonomicRemarks)) {
|
2323
|
return NoteCategory_Taxonomic_Remarks;
|
2324
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidNote)){
|
2325
|
return NoteCategory_Note;
|
2326
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidTaxonomy)) {
|
2327
|
return NoteCategory_Taxonomy;
|
2328
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidTaxonomicstatus)) {
|
2329
|
return NoteCategory_Taxonomic_status;
|
2330
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidStatus)){
|
2331
|
return NoteCategory_Status;
|
2332
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidRank)) {
|
2333
|
return NoteCategory_Rank;
|
2334
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidHomonymy)) {
|
2335
|
return NoteCategory_Homonymy;
|
2336
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidNomenclature)) {
|
2337
|
return NoteCategory_Nomenclature;
|
2338
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidTaxonomicRemark)) {
|
2339
|
return NoteCategory_Taxonomic_Remark;
|
2340
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidAcknowledgments)){
|
2341
|
return NoteCategory_Acknowledgments;
|
2342
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidOriginalpublication)) {
|
2343
|
return NoteCategory_Original_publication;
|
2344
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidTypelocality)) {
|
2345
|
return NoteCategory_Type_locality;
|
2346
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidValidity)) {
|
2347
|
return NoteCategory_Validity;
|
2348
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidIdentification)) {
|
2349
|
return NoteCategory_Identification;
|
2350
|
} else if (feature.getUuid().equals(ErmsTransformer.uuidSynonymy)) {
|
2351
|
return NoteCategory_Synonymy;
|
2352
|
} else if (feature.equals(Feature.CITATION())) {
|
2353
|
return null; //citations are handled differently
|
2354
|
|
2355
|
// TODO: Unknown NodeCategories
|
2356
|
// NoteCategory_general_distribution_euromed = 10;
|
2357
|
// NoteCategory_general_distribution_world = 11;
|
2358
|
// NoteCategory_Common_names = 12;
|
2359
|
// NoteCategory_Maps =14;
|
2360
|
// NoteCategory_Link_to_maps = 20;
|
2361
|
// NoteCategory_Link_to_images = 21;
|
2362
|
// NoteCategory_Link_to_taxonomy = 22;
|
2363
|
// NoteCategory_Link_to_general_information = 23;
|
2364
|
// NoteCategory_undefined_link = 24;
|
2365
|
// NoteCategory_Editor_Braces = 249;
|
2366
|
// NoteCategory_Editor_Brackets = 250;
|
2367
|
// NoteCategory_Editor_Parenthesis = 251;
|
2368
|
// NoteCategory_Inedited = 252;
|
2369
|
// NoteCategory_Comments_on_editing_process = 253;
|
2370
|
// NoteCategory_Publication_date = 254;
|
2371
|
// NoteCategory_Distribution = 278;
|
2372
|
// NoteCategory_Biology = 281;
|
2373
|
// NoteCategory_Diagnosis = 282;
|
2374
|
// NoteCategory_Host = 283;
|
2375
|
|
2376
|
}else{
|
2377
|
logger.warn("Unhandled Feature: " + feature.getTitleCache());
|
2378
|
return null;
|
2379
|
}
|
2380
|
}
|
2381
|
|
2382
|
/**
|
2383
|
* Returns the string representation for a given rank.
|
2384
|
* @param rank
|
2385
|
* @param pesiKingdomId
|
2386
|
* @return
|
2387
|
*/
|
2388
|
public static String rank2RankCache(Rank rank, Integer pesiKingdomId) {
|
2389
|
String result = null;
|
2390
|
if (rank == null) {
|
2391
|
return null;
|
2392
|
}
|
2393
|
|
2394
|
// We differentiate between Animalia and Plantae only for now.
|
2395
|
if (pesiKingdomId != null && pesiKingdomId.intValue() == KINGDOM_ANIMALIA) {
|
2396
|
if (rank.equals(Rank.KINGDOM())) {
|
2397
|
result = Animalia_STR_Kingdom;
|
2398
|
} else if (rank.equals(Rank.SUBKINGDOM())) {
|
2399
|
result = Animalia_STR_Subkingdom;
|
2400
|
} else if (rank.equals(Rank.SUPERPHYLUM())) {
|
2401
|
result = Animalia_STR_Superphylum;
|
2402
|
} else if (rank.equals(Rank.PHYLUM())) {
|
2403
|
result = Animalia_STR_Phylum;
|
2404
|
} else if (rank.equals(Rank.SUBPHYLUM())) {
|
2405
|
result = Animalia_STR_Subphylum;
|
2406
|
} else if (rank.equals(Rank.INFRAPHYLUM())) {
|
2407
|
result = Animalia_STR_Infraphylum;
|
2408
|
} else if (rank.equals(Rank.SUPERCLASS())) {
|
2409
|
result = Animalia_STR_Superclass;
|
2410
|
} else if (rank.equals(Rank.CLASS())) {
|
2411
|
result = Animalia_STR_Class;
|
2412
|
} else if (rank.equals(Rank.SUBCLASS())) {
|
2413
|
result = Animalia_STR_Subclass;
|
2414
|
} else if (rank.equals(Rank.INFRACLASS())) {
|
2415
|
result = Animalia_STR_Infraclass;
|
2416
|
} else if (rank.equals(Rank.SUPERORDER())) {
|
2417
|
result = Animalia_STR_Superorder;
|
2418
|
} else if (rank.equals(Rank.ORDER())) {
|
2419
|
result = Animalia_STR_Order;
|
2420
|
} else if (rank.equals(Rank.SUBORDER())) {
|
2421
|
result = Animalia_STR_Suborder;
|
2422
|
} else if (rank.equals(Rank.INFRAORDER())) {
|
2423
|
result = Animalia_STR_Infraorder;
|
2424
|
} else if (rank.equals(Rank.SECTION_ZOOLOGY())) {
|
2425
|
result = Animalia_STR_Section;
|
2426
|
} else if (rank.equals(Rank.SUBSECTION_ZOOLOGY())) {
|
2427
|
result = Animalia_STR_Subsection;
|
2428
|
} else if (rank.equals(Rank.SUPERFAMILY())) {
|
2429
|
result = Animalia_STR_Superfamily;
|
2430
|
} else if (rank.equals(Rank.FAMILY())) {
|
2431
|
result = Animalia_STR_Family;
|
2432
|
} else if (rank.equals(Rank.SUBFAMILY())) {
|
2433
|
result = Animalia_STR_Subfamily;
|
2434
|
} else if (rank.equals(Rank.TRIBE())) {
|
2435
|
result = Animalia_STR_Tribe;
|
2436
|
} else if (rank.equals(Rank.SUBTRIBE())) {
|
2437
|
result = Animalia_STR_Subtribe;
|
2438
|
} else if (rank.equals(Rank.GENUS())) {
|
2439
|
result = Animalia_STR_Genus;
|
2440
|
} else if (rank.equals(Rank.SUBGENUS())) {
|
2441
|
result = Animalia_STR_Subgenus;
|
2442
|
} else if (rank.equals(Rank.SPECIES())) {
|
2443
|
result = Animalia_STR_Species;
|
2444
|
} else if (rank.equals(Rank.SUBSPECIES())) {
|
2445
|
result = Animalia_STR_Subspecies;
|
2446
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2447
|
// result = Animalia_STR_Natio;
|
2448
|
} else if (rank.equals(Rank.VARIETY())) {
|
2449
|
result = Animalia_STR_Variety;
|
2450
|
} else if (rank.equals(Rank.SUBVARIETY())) {
|
2451
|
result = Animalia_STR_Subvariety;
|
2452
|
} else if (rank.equals(Rank.FORM())) {
|
2453
|
result = Animalia_STR_Forma;
|
2454
|
} else {
|
2455
|
//TODO Exception
|
2456
|
logger.warn("Rank for Kingdom Animalia not yet supported in CDM: "+ rank.getLabel());
|
2457
|
return null;
|
2458
|
}
|
2459
|
} else if (pesiKingdomId != null && pesiKingdomId.intValue() == KINGDOM_PLANTAE) {
|
2460
|
if (rank.equals(Rank.KINGDOM())) {
|
2461
|
result = Plantae_STR_Kingdom;
|
2462
|
} else if (rank.equals(Rank.SUBKINGDOM())) {
|
2463
|
result = Plantae_STR_Subkingdom;
|
2464
|
} else if (rank.equals(Rank.DIVISION())) {
|
2465
|
result = Plantae_STR_Division;
|
2466
|
} else if (rank.equals(Rank.SUBDIVISION())) {
|
2467
|
result = Plantae_STR_Subdivision;
|
2468
|
} else if (rank.equals(Rank.CLASS())) {
|
2469
|
result = Plantae_STR_Class;
|
2470
|
} else if (rank.equals(Rank.SUBCLASS())) {
|
2471
|
result = Plantae_STR_Subclass;
|
2472
|
} else if (rank.equals(Rank.ORDER())) {
|
2473
|
result = Plantae_STR_Order;
|
2474
|
} else if (rank.equals(Rank.SUBORDER())) {
|
2475
|
result = Plantae_STR_Suborder;
|
2476
|
} else if (rank.equals(Rank.FAMILY())) {
|
2477
|
result = Plantae_STR_Family;
|
2478
|
} else if (rank.equals(Rank.SUBFAMILY())) {
|
2479
|
result = Plantae_STR_Subfamily;
|
2480
|
} else if (rank.equals(Rank.TRIBE())) {
|
2481
|
result = Plantae_STR_Tribe;
|
2482
|
} else if (rank.equals(Rank.SUBTRIBE())) {
|
2483
|
result = Plantae_STR_Subtribe;
|
2484
|
} else if (rank.equals(Rank.GENUS())) {
|
2485
|
result = Plantae_STR_Genus;
|
2486
|
} else if (rank.equals(Rank.SUBGENUS())) {
|
2487
|
result = Plantae_STR_Subgenus;
|
2488
|
} else if (rank.equals(Rank.SECTION_BOTANY())) {
|
2489
|
result = Plantae_STR_Section;
|
2490
|
} else if (rank.equals(Rank.SUBSECTION_BOTANY())) {
|
2491
|
result = Plantae_STR_Subsection;
|
2492
|
} else if (rank.equals(Rank.SERIES())) {
|
2493
|
result = Plantae_STR_Series;
|
2494
|
} else if (rank.equals(Rank.SUBSERIES())) {
|
2495
|
result = Plantae_STR_Subseries;
|
2496
|
} else if (rank.equals(Rank.SPECIESAGGREGATE() )) {
|
2497
|
result = Plantae_STR_Aggregate;
|
2498
|
} else if (rank.equals(Rank.SPECIESGROUP())) {
|
2499
|
logger.warn("Rank Species Group not yet implemented");
|
2500
|
result = null;
|
2501
|
} else if (rank.getUuid().equals(BerlinModelTransformer.uuidRankCollSpecies)) {
|
2502
|
result = Plantae_STR_Coll_Species;
|
2503
|
} else if (rank.equals(Rank.SPECIES())) {
|
2504
|
result = Plantae_STR_Species;
|
2505
|
} else if (rank.equals(Rank.SUBSPECIES())) {
|
2506
|
result = Plantae_STR_Subspecies;
|
2507
|
} else if (rank.equals(Rank.GREX())) {
|
2508
|
result = Plantae_STR_Grex;
|
2509
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2510
|
// result = Plantae_STR_Proles;
|
2511
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2512
|
// result = Plantae_STR_Race;
|
2513
|
} else if (rank.equals(Rank.CONVAR())) {
|
2514
|
result = Plantae_STR_Convarietas;
|
2515
|
} else if (rank.equals(Rank.VARIETY())) {
|
2516
|
result = Plantae_STR_Variety;
|
2517
|
} else if (rank.equals(Rank.SUBVARIETY())) {
|
2518
|
result = Plantae_STR_Subvariety;
|
2519
|
} else if (rank.equals(Rank.FORM())) {
|
2520
|
result = Plantae_STR_Forma;
|
2521
|
} else if (rank.equals(Rank.SUBFORM())) {
|
2522
|
result = Plantae_STR_Subforma;
|
2523
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2524
|
// result = Plantae_STR_Forma_spec;
|
2525
|
} else if (rank.equals(Rank.INFRAGENERICTAXON())) {
|
2526
|
result = Plantae_STR_Taxa_infragen;
|
2527
|
} else if (rank.equals(Rank.INFRASPECIFICTAXON())) {
|
2528
|
result = Plantae_STR_Taxa_infraspec;
|
2529
|
} else {
|
2530
|
//TODO Exception
|
2531
|
logger.warn("Rank for Kingdom Plantae not yet supported in CDM: "+ rank.getLabel());
|
2532
|
return null;
|
2533
|
}
|
2534
|
} else if (pesiKingdomId != null && pesiKingdomId.intValue() == KINGDOM_BACTERIA) {
|
2535
|
if (rank.equals(Rank.KINGDOM())) { result = Bacteria_STR_Kingdom; }
|
2536
|
else if (rank.equals(Rank.SUBKINGDOM())) { result = Bacteria_STR_Subkingdom; }
|
2537
|
else if (rank.equals(Rank.PHYLUM())) { result = Bacteria_STR_Phylum; }
|
2538
|
else if (rank.equals(Rank.SUBPHYLUM())) { result = Bacteria_STR_Subphylum; }
|
2539
|
else if (rank.equals(Rank.SUPERCLASS())) { result = Bacteria_STR_Superclass; }
|
2540
|
else if (rank.equals(Rank.CLASS())) { result = Bacteria_STR_Class; }
|
2541
|
else if (rank.equals(Rank.SUBCLASS())) { result = Bacteria_STR_Subclass; }
|
2542
|
else if (rank.equals(Rank.INFRACLASS())) { result = Bacteria_STR_Infraclass; }
|
2543
|
else if (rank.equals(Rank.SUPERORDER())) { result = Bacteria_STR_Superorder; }
|
2544
|
else if (rank.equals(Rank.ORDER())) { result = Bacteria_STR_Order; }
|
2545
|
else if (rank.equals(Rank.SUBORDER())) { result = Bacteria_STR_Suborder; }
|
2546
|
else if (rank.equals(Rank.INFRAORDER())) { result = Bacteria_STR_Infraorder; }
|
2547
|
else if (rank.equals(Rank.SUPERFAMILY())) { result = Bacteria_STR_Superfamily; }
|
2548
|
else if (rank.equals(Rank.FAMILY())) { result = Bacteria_STR_Family; }
|
2549
|
else if (rank.equals(Rank.SUBFAMILY())) { result = Bacteria_STR_Subfamily; }
|
2550
|
else if (rank.equals(Rank.TRIBE())) { result = Bacteria_STR_Tribe; }
|
2551
|
else if (rank.equals(Rank.SUBTRIBE())) { result = Bacteria_STR_Subtribe; }
|
2552
|
else if (rank.equals(Rank.GENUS())) { result = Bacteria_STR_Genus; }
|
2553
|
else if (rank.equals(Rank.SUBGENUS())) { result = Bacteria_STR_Subgenus; }
|
2554
|
else if (rank.equals(Rank.SPECIES())) { result = Bacteria_STR_Species; }
|
2555
|
else if (rank.equals(Rank.SUBSPECIES())) { result = Bacteria_STR_Subspecies; }
|
2556
|
else if (rank.equals(Rank.VARIETY())) { result = Bacteria_STR_Variety; }
|
2557
|
else if (rank.equals(Rank.FORM())) { result = Bacteria_STR_Forma; }
|
2558
|
} else {
|
2559
|
//TODO Exception
|
2560
|
logger.warn("Kingdom not yet supported in CDM: "+ pesiKingdomId);
|
2561
|
return null;
|
2562
|
}
|
2563
|
return result;
|
2564
|
}
|
2565
|
|
2566
|
/**
|
2567
|
* Returns the abbreviation for a given rank.
|
2568
|
* @param rank
|
2569
|
* @param pesiKingdomId
|
2570
|
* @return
|
2571
|
*/
|
2572
|
public static String rank2RankAbbrev(Rank rank, Integer pesiKingdomId) {
|
2573
|
String result = null;
|
2574
|
if (rank == null) {
|
2575
|
return null;
|
2576
|
}
|
2577
|
|
2578
|
// We differentiate between Animalia and Plantae only for now.
|
2579
|
if (pesiKingdomId != null && pesiKingdomId.intValue() == KINGDOM_ANIMALIA) {
|
2580
|
if (rank.equals(Rank.SUBGENUS())) {
|
2581
|
result = Animalia_Abbrev_Subgenus;
|
2582
|
} else if (rank.equals(Rank.SPECIES())) {
|
2583
|
result = Animalia_Abbrev_Species;
|
2584
|
} else if (rank.equals(Rank.SUBSPECIES())) {
|
2585
|
result = Animalia_Abbrev_Subspecies;
|
2586
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2587
|
// result = Animalia_STR_Natio;
|
2588
|
} else if (rank.equals(Rank.VARIETY())) {
|
2589
|
result = Animalia_Abbrev_Variety;
|
2590
|
} else if (rank.equals(Rank.SUBVARIETY())) {
|
2591
|
result = Animalia_Abbrev_Subvariety;
|
2592
|
} else if (rank.equals(Rank.FORM())) {
|
2593
|
result = Animalia_Abbrev_Forma;
|
2594
|
} else {
|
2595
|
//TODO Exception
|
2596
|
logger.warn("Abbreviation for Rank of Kingdom Animalia not supported in CDM: "+ rank.getLabel());
|
2597
|
return null;
|
2598
|
}
|
2599
|
} else if (pesiKingdomId != null && pesiKingdomId.intValue() == KINGDOM_PLANTAE) {
|
2600
|
if (rank.equals(Rank.KINGDOM())) {
|
2601
|
result = Plantae_Abbrev_Kingdom;
|
2602
|
} else if (rank.equals(Rank.SUBKINGDOM())) {
|
2603
|
result = Plantae_Abbrev_Subkingdom;
|
2604
|
} else if (rank.equals(Rank.DIVISION())) {
|
2605
|
result = Plantae_Abbrev_Division;
|
2606
|
} else if (rank.equals(Rank.SUBDIVISION())) {
|
2607
|
result = Plantae_Abbrev_Subdivision;
|
2608
|
} else if (rank.equals(Rank.CLASS())) {
|
2609
|
result = Plantae_Abbrev_Class;
|
2610
|
} else if (rank.equals(Rank.SUBCLASS())) {
|
2611
|
result = Plantae_Abbrev_Subclass;
|
2612
|
} else if (rank.equals(Rank.ORDER())) {
|
2613
|
result = Plantae_Abbrev_Order;
|
2614
|
} else if (rank.equals(Rank.SUBORDER())) {
|
2615
|
result = Plantae_Abbrev_Suborder;
|
2616
|
} else if (rank.equals(Rank.FAMILY())) {
|
2617
|
result = Plantae_Abbrev_Family;
|
2618
|
} else if (rank.equals(Rank.SUBFAMILY())) {
|
2619
|
result = Plantae_Abbrev_Subfamily;
|
2620
|
} else if (rank.equals(Rank.TRIBE())) {
|
2621
|
result = Plantae_Abbrev_Tribe;
|
2622
|
} else if (rank.equals(Rank.SUBTRIBE())) {
|
2623
|
result = Plantae_Abbrev_Subtribe;
|
2624
|
} else if (rank.equals(Rank.GENUS())) {
|
2625
|
result = Plantae_Abbrev_Genus;
|
2626
|
} else if (rank.equals(Rank.SUBGENUS())) {
|
2627
|
result = Plantae_Abbrev_Subgenus;
|
2628
|
} else if (rank.equals(Rank.SECTION_BOTANY())) {
|
2629
|
result = Plantae_Abbrev_Section;
|
2630
|
} else if (rank.equals(Rank.SUBSECTION_BOTANY())) {
|
2631
|
result = Plantae_Abbrev_Subsection;
|
2632
|
} else if (rank.equals(Rank.SERIES())) {
|
2633
|
result = Plantae_Abbrev_Series;
|
2634
|
} else if (rank.equals(Rank.SUBSERIES())) {
|
2635
|
result = Plantae_Abbrev_Subseries;
|
2636
|
} else if (rank.equals(Rank.SPECIESAGGREGATE() )) {
|
2637
|
result = Plantae_Abbrev_Aggregate;
|
2638
|
} else if (rank.getUuid().equals(BerlinModelTransformer.uuidRankCollSpecies)) {
|
2639
|
result = Plantae_Abbrev_Coll_Species;
|
2640
|
} else if (rank.equals(Rank.SPECIES())) {
|
2641
|
result = Plantae_Abbrev_Species;
|
2642
|
} else if (rank.equals(Rank.GREX())) {
|
2643
|
result = Plantae_Abbrev_Grex;
|
2644
|
} else if (rank.equals(Rank.SUBSPECIES())) {
|
2645
|
result = Plantae_Abbrev_Subspecies;
|
2646
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2647
|
// result = Plantae_Abbrev_Proles;
|
2648
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2649
|
// result = Plantae_Abbrev_Race;
|
2650
|
} else if (rank.equals(Rank.CONVAR())) {
|
2651
|
result = Plantae_Abbrev_Convarietas;
|
2652
|
} else if (rank.equals(Rank.VARIETY())) {
|
2653
|
result = Plantae_Abbrev_Variety;
|
2654
|
} else if (rank.equals(Rank.SUBVARIETY())) {
|
2655
|
result = Plantae_Abbrev_Subvariety;
|
2656
|
} else if (rank.equals(Rank.FORM())) {
|
2657
|
result = Plantae_Abbrev_Forma;
|
2658
|
} else if (rank.equals(Rank.SUBFORM())) {
|
2659
|
result = Plantae_Abbrev_Subforma;
|
2660
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2661
|
// result = Plantae_Abbrev_Forma_spec;
|
2662
|
} else if (rank.equals(Rank.INFRAGENERICTAXON())) {
|
2663
|
result = Plantae_Abbrev_Taxa_infragen;
|
2664
|
} else if (rank.equals(Rank.INFRASPECIFICTAXON())) {
|
2665
|
result = Plantae_Abbrev_Taxa_infraspec;
|
2666
|
} else {
|
2667
|
//TODO Exception
|
2668
|
logger.warn("Abbreviation for Rank of Kingdom Plantae not supported in CDM: "+ rank.getLabel());
|
2669
|
return null;
|
2670
|
}
|
2671
|
} else {
|
2672
|
//TODO Exception
|
2673
|
logger.warn("Kingdom not yet supported in CDM: "+ pesiKingdomId);
|
2674
|
return null;
|
2675
|
}
|
2676
|
return result;
|
2677
|
}
|
2678
|
|
2679
|
/**
|
2680
|
* Returns the identifier of a PESI specific kingdom for a given CDM nomenclatural code.
|
2681
|
* @param nomenclaturalCode
|
2682
|
* @return KINGDOM_ANIMALIA for NomenclaturalCode.ICZN, KINGDOM_PLANTAE for NomenclaturalCode.ICBN
|
2683
|
*/
|
2684
|
public static Integer nomenClaturalCode2Kingdom(NomenclaturalCode nomenclaturalCode) {
|
2685
|
Integer result = null;
|
2686
|
// TODO: This needs to be refined. For now we differentiate between Animalia and Plantae only.
|
2687
|
if (nomenclaturalCode.equals(NomenclaturalCode.ICZN)) {
|
2688
|
result = KINGDOM_ANIMALIA;
|
2689
|
} else if (nomenclaturalCode.equals(NomenclaturalCode.ICBN)) {
|
2690
|
result = KINGDOM_PLANTAE;
|
2691
|
} else if (nomenclaturalCode.equals(NomenclaturalCode.ICNB)) {
|
2692
|
result = KINGDOM_BACTERIA;
|
2693
|
// } else if (nomenclaturalCode.equals(NomenclaturalCode.)) { // Biota
|
2694
|
// result =
|
2695
|
} else {
|
2696
|
logger.error("NomenclaturalCode not yet considered: " + nomenclaturalCode.getUuid() + " (" + nomenclaturalCode.getTitleCache() + ")");
|
2697
|
}
|
2698
|
return result;
|
2699
|
}
|
2700
|
|
2701
|
/**
|
2702
|
* Returns the RankId for a Rank.
|
2703
|
* @param rank
|
2704
|
* @return
|
2705
|
*/
|
2706
|
public static Integer rank2RankId (Rank rank, Integer pesiKingdomId) {
|
2707
|
Integer result = null;
|
2708
|
if (rank == null) {
|
2709
|
return null;
|
2710
|
}
|
2711
|
|
2712
|
// We differentiate between Animalia and Plantae only for now.
|
2713
|
if (pesiKingdomId != null && pesiKingdomId.intValue() == KINGDOM_ANIMALIA) {
|
2714
|
if (rank.equals(Rank.KINGDOM())) {
|
2715
|
result = Animalia_Kingdom;
|
2716
|
} else if (rank.equals(Rank.SUBKINGDOM())) {
|
2717
|
result = Animalia_Subkingdom;
|
2718
|
} else if (rank.equals(Rank.SUPERPHYLUM())) {
|
2719
|
result = Animalia_Superphylum;
|
2720
|
} else if (rank.equals(Rank.PHYLUM())) {
|
2721
|
result = Animalia_Phylum;
|
2722
|
} else if (rank.equals(Rank.SUBPHYLUM())) {
|
2723
|
result = Animalia_Subphylum;
|
2724
|
} else if (rank.equals(Rank.INFRAPHYLUM())) {
|
2725
|
result = Animalia_Infraphylum;
|
2726
|
} else if (rank.equals(Rank.SUPERCLASS())) {
|
2727
|
result = Animalia_Superclass;
|
2728
|
} else if (rank.equals(Rank.CLASS())) {
|
2729
|
result = Animalia_Class;
|
2730
|
} else if (rank.equals(Rank.SUBCLASS())) {
|
2731
|
result = Animalia_Subclass;
|
2732
|
} else if (rank.equals(Rank.INFRACLASS())) {
|
2733
|
result = Animalia_Infraclass;
|
2734
|
} else if (rank.equals(Rank.SUPERORDER())) {
|
2735
|
result = Animalia_Superorder;
|
2736
|
} else if (rank.equals(Rank.ORDER())) {
|
2737
|
result = Animalia_Order;
|
2738
|
} else if (rank.equals(Rank.SUBORDER())) {
|
2739
|
result = Animalia_Suborder;
|
2740
|
} else if (rank.equals(Rank.INFRAORDER())) {
|
2741
|
result = Animalia_Infraorder;
|
2742
|
} else if (rank.equals(Rank.SECTION_ZOOLOGY())) {
|
2743
|
result = Animalia_Section;
|
2744
|
} else if (rank.equals(Rank.SUBSECTION_ZOOLOGY())) {
|
2745
|
result = Animalia_Subsection;
|
2746
|
} else if (rank.equals(Rank.SUPERFAMILY())) {
|
2747
|
result = Animalia_Superfamily;
|
2748
|
} else if (rank.equals(Rank.FAMILY())) {
|
2749
|
result = Animalia_Family;
|
2750
|
} else if (rank.equals(Rank.SUBFAMILY())) {
|
2751
|
result = Animalia_Subfamily;
|
2752
|
} else if (rank.equals(Rank.TRIBE())) {
|
2753
|
result = Animalia_Tribe;
|
2754
|
} else if (rank.equals(Rank.SUBTRIBE())) {
|
2755
|
result = Animalia_Subtribe;
|
2756
|
} else if (rank.equals(Rank.GENUS())) {
|
2757
|
result = Animalia_Genus;
|
2758
|
} else if (rank.equals(Rank.SUBGENUS())) {
|
2759
|
result = Animalia_Subgenus;
|
2760
|
} else if (rank.equals(Rank.SPECIES())) {
|
2761
|
result = Animalia_Species;
|
2762
|
} else if (rank.equals(Rank.SUBSPECIES())) {
|
2763
|
result = Animalia_Subspecies;
|
2764
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2765
|
// result = Animalia_Natio;
|
2766
|
} else if (rank.equals(Rank.VARIETY())) {
|
2767
|
result = Animalia_Variety;
|
2768
|
} else if (rank.equals(Rank.SUBVARIETY())) {
|
2769
|
result = Animalia_Subvariety;
|
2770
|
} else if (rank.equals(Rank.FORM())) {
|
2771
|
result = Animalia_Forma;
|
2772
|
} else {
|
2773
|
//TODO Exception
|
2774
|
logger.warn("Rank for Kingdom Animalia not yet supported in CDM: "+ rank.getLabel());
|
2775
|
return null;
|
2776
|
}
|
2777
|
} else if (pesiKingdomId != null && pesiKingdomId.intValue() == KINGDOM_PLANTAE) {
|
2778
|
if (rank.equals(Rank.KINGDOM())) {
|
2779
|
result = Plantae_Kingdom;
|
2780
|
} else if (rank.equals(Rank.SUBKINGDOM())) {
|
2781
|
result = Plantae_Subkingdom;
|
2782
|
} else if (rank.equals(Rank.DIVISION())) {
|
2783
|
result = Plantae_Division;
|
2784
|
} else if (rank.equals(Rank.SUBDIVISION())) {
|
2785
|
result = Plantae_Subdivision;
|
2786
|
} else if (rank.equals(Rank.CLASS())) {
|
2787
|
result = Plantae_Class;
|
2788
|
} else if (rank.equals(Rank.SUBCLASS())) {
|
2789
|
result = Plantae_Subclass;
|
2790
|
} else if (rank.equals(Rank.ORDER())) {
|
2791
|
result = Plantae_Order;
|
2792
|
} else if (rank.equals(Rank.SUBORDER())) {
|
2793
|
result = Plantae_Suborder;
|
2794
|
} else if (rank.equals(Rank.FAMILY())) {
|
2795
|
result = Plantae_Family;
|
2796
|
} else if (rank.equals(Rank.SUBFAMILY())) {
|
2797
|
result = Plantae_Subfamily;
|
2798
|
} else if (rank.equals(Rank.TRIBE())) {
|
2799
|
result = Plantae_Tribe;
|
2800
|
} else if (rank.equals(Rank.SUBTRIBE())) {
|
2801
|
result = Plantae_Subtribe;
|
2802
|
} else if (rank.equals(Rank.GENUS())) {
|
2803
|
result = Plantae_Genus;
|
2804
|
} else if (rank.equals(Rank.SUBGENUS())) {
|
2805
|
result = Plantae_Subgenus;
|
2806
|
} else if (rank.equals(Rank.SECTION_BOTANY())) {
|
2807
|
result = Plantae_Section;
|
2808
|
} else if (rank.equals(Rank.SUBSECTION_BOTANY())) {
|
2809
|
result = Plantae_Subsection;
|
2810
|
} else if (rank.equals(Rank.SERIES())) {
|
2811
|
result = Plantae_Series;
|
2812
|
} else if (rank.equals(Rank.SUBSERIES())) {
|
2813
|
result = Plantae_Subseries;
|
2814
|
} else if (rank.equals(Rank.SPECIESAGGREGATE() )) {
|
2815
|
result = Plantae_Aggregate;
|
2816
|
} else if (rank.equals(Rank.SPECIESGROUP())) {
|
2817
|
logger.warn("Rank Species Group not yet implemented");
|
2818
|
result = null;
|
2819
|
} else if (rank.getUuid().equals(BerlinModelTransformer.uuidRankCollSpecies)) {
|
2820
|
result = Plantae_Coll_Species;
|
2821
|
} else if (rank.equals(Rank.SPECIES())) {
|
2822
|
result = Plantae_Species;
|
2823
|
} else if (rank.equals(Rank.SUBSPECIES())) {
|
2824
|
result = Plantae_Subspecies;
|
2825
|
} else if (rank.equals(Rank.GREX())) {
|
2826
|
result = Plantae_Grex;
|
2827
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2828
|
// result = Plantae_Proles;
|
2829
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2830
|
// result = Plantae_Race;
|
2831
|
} else if (rank.equals(Rank.CONVAR())) {
|
2832
|
result = Plantae_Convarietas;
|
2833
|
} else if (rank.equals(Rank.VARIETY())) {
|
2834
|
result = Plantae_Variety;
|
2835
|
} else if (rank.equals(Rank.SUBVARIETY())) {
|
2836
|
result = Plantae_Subvariety;
|
2837
|
} else if (rank.equals(Rank.FORM())) {
|
2838
|
result = Plantae_Forma;
|
2839
|
} else if (rank.equals(Rank.SUBFORM())) {
|
2840
|
result = Plantae_Subforma;
|
2841
|
// } else if (rank.equals(Rank.)) { // not yet specified
|
2842
|
// result = Plantae_Forma_spec;
|
2843
|
} else if (rank.equals(Rank.INFRAGENERICTAXON())) {
|
2844
|
result = Plantae_Taxa_infragen;
|
2845
|
} else if (rank.equals(Rank.INFRASPECIFICTAXON())) {
|
2846
|
result = Plantae_Taxa_infraspec;
|
2847
|
} else {
|
2848
|
//TODO Exception
|
2849
|
logger.warn("Rank for Kingdom Plantae not yet supported in CDM: "+ rank.getLabel());
|
2850
|
return null;
|
2851
|
}
|
2852
|
} else if (pesiKingdomId != null && pesiKingdomId.intValue() == KINGDOM_BACTERIA) {
|
2853
|
if (rank.equals(Rank.KINGDOM())) { result = Bacteria_Kingdom; }
|
2854
|
else if (rank.equals(Rank.SUBKINGDOM())) { result = Bacteria_Subkingdom; }
|
2855
|
else if (rank.equals(Rank.PHYLUM())) { result = Bacteria_Phylum; }
|
2856
|
else if (rank.equals(Rank.SUBPHYLUM())) { result = Bacteria_Subphylum; }
|
2857
|
else if (rank.equals(Rank.SUPERCLASS())) { result = Bacteria_Superclass; }
|
2858
|
else if (rank.equals(Rank.CLASS())) { result = Bacteria_Class; }
|
2859
|
else if (rank.equals(Rank.SUBCLASS())) { result = Bacteria_Subclass; }
|
2860
|
else if (rank.equals(Rank.INFRACLASS())) { result = Bacteria_Infraclass; }
|
2861
|
else if (rank.equals(Rank.SUPERORDER())) { result = Bacteria_Superorder; }
|
2862
|
else if (rank.equals(Rank.ORDER())) { result = Bacteria_Order; }
|
2863
|
else if (rank.equals(Rank.SUBORDER())) { result = Bacteria_Suborder; }
|
2864
|
else if (rank.equals(Rank.INFRAORDER())) { result = Bacteria_Infraorder; }
|
2865
|
else if (rank.equals(Rank.SUPERFAMILY())) { result = Bacteria_Superfamily; }
|
2866
|
else if (rank.equals(Rank.FAMILY())) { result = Bacteria_Family; }
|
2867
|
else if (rank.equals(Rank.SUBFAMILY())) { result = Bacteria_Subfamily; }
|
2868
|
else if (rank.equals(Rank.TRIBE())) { result = Bacteria_Tribe; }
|
2869
|
else if (rank.equals(Rank.SUBTRIBE())) { result = Bacteria_Subtribe; }
|
2870
|
else if (rank.equals(Rank.GENUS())) { result = Bacteria_Genus; }
|
2871
|
else if (rank.equals(Rank.SUBGENUS())) { result = Bacteria_Subgenus; }
|
2872
|
else if (rank.equals(Rank.SPECIES())) { result = Bacteria_Species; }
|
2873
|
else if (rank.equals(Rank.SUBSPECIES())) { result = Bacteria_Subspecies; }
|
2874
|
else if (rank.equals(Rank.VARIETY())) { result = Bacteria_Variety; }
|
2875
|
else if (rank.equals(Rank.FORM())) { result = Bacteria_Forma; }
|
2876
|
} else {
|
2877
|
//TODO Exception
|
2878
|
logger.warn("Kingdom not yet supported in CDM: "+ pesiKingdomId);
|
2879
|
return null;
|
2880
|
}
|
2881
|
return result;
|
2882
|
}
|
2883
|
|
2884
|
/**
|
2885
|
*
|
2886
|
* @param nameTypeDesignationStatus
|
2887
|
* @return
|
2888
|
*/
|
2889
|
public static Integer nameTypeDesignationStatus2TypeDesignationStatusId(NameTypeDesignationStatus nameTypeDesignationStatus) {
|
2890
|
if (nameTypeDesignationStatus == null) {
|
2891
|
return null;
|
2892
|
}
|
2893
|
if (nameTypeDesignationStatus.equals(NameTypeDesignationStatus.ORIGINAL_DESIGNATION())) {
|
2894
|
return TYPE_BY_ORIGINAL_DESIGNATION;
|
2895
|
} else if (nameTypeDesignationStatus.equals(NameTypeDesignationStatus.SUBSEQUENT_DESIGNATION())) {
|
2896
|
return TYPE_BY_SUBSEQUENT_DESIGNATION;
|
2897
|
} else if (nameTypeDesignationStatus.equals(NameTypeDesignationStatus.MONOTYPY())) {
|
2898
|
return TYPE_BY_MONOTYPY;
|
2899
|
} else {
|
2900
|
//TODO Figure out a way to handle this gracefully.
|
2901
|
logger.warn("Name Type Designation Status not yet supported in PESI: "+ nameTypeDesignationStatus.getLabel());
|
2902
|
return null;
|
2903
|
}
|
2904
|
|
2905
|
}
|
2906
|
|
2907
|
/**
|
2908
|
*
|
2909
|
* @param nameTypeDesignationStatus
|
2910
|
* @return
|
2911
|
*/
|
2912
|
public static String nameTypeDesignationStatus2TypeDesignationStatusCache(NameTypeDesignationStatus nameTypeDesignationStatus) {
|
2913
|
if (nameTypeDesignationStatus == null) {
|
2914
|
return null;
|
2915
|
}
|
2916
|
if (nameTypeDesignationStatus.equals(NameTypeDesignationStatus.ORIGINAL_DESIGNATION())) {
|
2917
|
return TYPE_STR_BY_ORIGINAL_DESIGNATION;
|
2918
|
} else if (nameTypeDesignationStatus.equals(NameTypeDesignationStatus.SUBSEQUENT_DESIGNATION())) {
|
2919
|
return TYPE_STR_BY_SUBSEQUENT_DESIGNATION;
|
2920
|
} else if (nameTypeDesignationStatus.equals(NameTypeDesignationStatus.MONOTYPY())) {
|
2921
|
return TYPE_STR_BY_MONOTYPY;
|
2922
|
} else {
|
2923
|
//TODO Figure out a way to handle this gracefully.
|
2924
|
logger.warn("Name Type Designation Status not yet supported in PESI: "+ nameTypeDesignationStatus.getLabel());
|
2925
|
return null;
|
2926
|
}
|
2927
|
|
2928
|
}
|
2929
|
|
2930
|
/**
|
2931
|
*
|
2932
|
* @param taxonBase
|
2933
|
* @return
|
2934
|
*/
|
2935
|
public static Integer taxonBase2statusFk (TaxonBase<?> taxonBase){
|
2936
|
if (taxonBase == null){return null;}
|
2937
|
if (taxonBase.isInstanceOf(Taxon.class)){
|
2938
|
return T_STATUS_ACCEPTED;
|
2939
|
}else if (taxonBase.isInstanceOf(Synonym.class)){
|
2940
|
return T_STATUS_SYNONYM;
|
2941
|
}else{
|
2942
|
logger.warn("Unknown ");
|
2943
|
return T_STATUS_UNRESOLVED;
|
2944
|
}
|
2945
|
//TODO
|
2946
|
// public static int T_STATUS_PARTIAL_SYN = 3;
|
2947
|
// public static int T_STATUS_PRO_PARTE_SYN = 4;
|
2948
|
// public static int T_STATUS_UNRESOLVED = 5;
|
2949
|
// public static int T_STATUS_ORPHANED = 6;
|
2950
|
}
|
2951
|
|
2952
|
/**
|
2953
|
*
|
2954
|
* @param taxonBase
|
2955
|
* @return
|
2956
|
*/
|
2957
|
public static String taxonBase2statusCache (TaxonBase<?> taxonBase){
|
2958
|
if (taxonBase == null){return null;}
|
2959
|
if (taxonBase.isInstanceOf(Taxon.class)){
|
2960
|
return T_STATUS_STR_ACCEPTED;
|
2961
|
}else if (taxonBase.isInstanceOf(Synonym.class)){
|
2962
|
return T_STATUS_STR_SYNONYM;
|
2963
|
}else{
|
2964
|
logger.warn("Unknown ");
|
2965
|
return T_STATUS_STR_UNRESOLVED;
|
2966
|
}
|
2967
|
//TODO
|
2968
|
// public static int T_STATUS_STR_PARTIAL_SYN = 3;
|
2969
|
// public static int T_STATUS_STR_PRO_PARTE_SYN = 4;
|
2970
|
// public static int T_STATUS_STR_UNRESOLVED = 5;
|
2971
|
// public static int T_STATUS_STR_ORPHANED = 6;
|
2972
|
}
|
2973
|
|
2974
|
/**
|
2975
|
* Returns the {@link SourceCategory SourceCategory} representation of the given {@link ReferenceType ReferenceType} in PESI.
|
2976
|
* @param reference The {@link Reference Reference}.
|
2977
|
* @return The {@link SourceCategory SourceCategory} representation in PESI.
|
2978
|
*/
|
2979
|
public static Integer reference2SourceCategoryFK(Reference<?> reference) {
|
2980
|
if (reference == null){
|
2981
|
return null;
|
2982
|
} else if (reference.getType().equals(ReferenceType.Article)) {
|
2983
|
return REF_ARTICLE_IN_PERIODICAL;
|
2984
|
} else if (reference.getType().equals(ReferenceType.Book)) {
|
2985
|
return REF_BOOK;
|
2986
|
} else if (reference.getType().equals(ReferenceType.BookSection)) {
|
2987
|
return REF_PART_OF_OTHER;
|
2988
|
} else if (reference.getType().equals(ReferenceType.Database)) {
|
2989
|
return REF_DATABASE;
|
2990
|
} else if (reference.getType().equals(ReferenceType.WebPage)) {
|
2991
|
return REF_WEBSITE;
|
2992
|
} else if (reference.getType().equals(ReferenceType.CdDvd)) {
|
2993
|
return REF_NOT_APPLICABLE;
|
2994
|
} else if (reference.getType().equals(ReferenceType.Journal)) {
|
2995
|
return REF_JOURNAL;
|
2996
|
} else if (reference.getType().equals(ReferenceType.Generic)) {
|
2997
|
return REF_UNRESOLVED;
|
2998
|
} else if (reference.getType().equals(ReferenceType.PrintSeries)) {
|
2999
|
return REF_PUBLISHED;
|
3000
|
} else if (reference.getType().equals(ReferenceType.Proceedings)) {
|
3001
|
return REF_PUBLISHED;
|
3002
|
} else if (reference.getType().equals(ReferenceType.Patent)) {
|
3003
|
return REF_NOT_APPLICABLE;
|
3004
|
} else if (reference.getType().equals(ReferenceType.PersonalCommunication)) {
|
3005
|
return REF_INFORMAL;
|
3006
|
} else if (reference.getType().equals(ReferenceType.Report)) {
|
3007
|
return REF_NOT_APPLICABLE;
|
3008
|
} else if (reference.getType().equals(ReferenceType.Thesis)) {
|
3009
|
return REF_NOT_APPLICABLE;
|
3010
|
} else {
|
3011
|
logger.warn("Reference type not yet supported in PESI: "+ reference.getType());
|
3012
|
return null;
|
3013
|
}
|
3014
|
}
|
3015
|
|
3016
|
/**
|
3017
|
* Returns the {@link SourceCategoryCache SourceCategoryCache}.
|
3018
|
* @param reference The {@link Reference Reference}.
|
3019
|
* @return The {@link SourceCategoryCache SourceCategoryCache}.
|
3020
|
*/
|
3021
|
public static String getSourceCategoryCache(Reference<?> reference) {
|
3022
|
if (reference == null){
|
3023
|
return null;
|
3024
|
} else if (reference.getType().equals(ReferenceType.Article)) {
|
3025
|
return REF_STR_ARTICLE_IN_PERIODICAL;
|
3026
|
} else if (reference.getType().equals(ReferenceType.Book)) {
|
3027
|
return REF_STR_BOOK;
|
3028
|
} else if (reference.getType().equals(ReferenceType.BookSection)) {
|
3029
|
return REF_STR_PART_OF_OTHER;
|
3030
|
} else if (reference.getType().equals(ReferenceType.Database)) {
|
3031
|
return REF_STR_DATABASE;
|
3032
|
} else if (reference.getType().equals(ReferenceType.WebPage)) {
|
3033
|
return REF_STR_WEBSITE;
|
3034
|
} else if (reference.getType().equals(ReferenceType.CdDvd)) {
|
3035
|
return REF_STR_NOT_APPLICABLE;
|
3036
|
} else if (reference.getType().equals(ReferenceType.Journal)) {
|
3037
|
return REF_STR_JOURNAL;
|
3038
|
} else if (reference.getType().equals(ReferenceType.Generic)) {
|
3039
|
return REF_STR_UNRESOLVED;
|
3040
|
} else if (reference.getType().equals(ReferenceType.PrintSeries)) {
|
3041
|
return REF_STR_PUBLISHED;
|
3042
|
} else if (reference.getType().equals(ReferenceType.Proceedings)) {
|
3043
|
return REF_STR_PUBLISHED;
|
3044
|
} else if (reference.getType().equals(ReferenceType.Patent)) {
|
3045
|
return REF_STR_NOT_APPLICABLE;
|
3046
|
} else if (reference.getType().equals(ReferenceType.PersonalCommunication)) {
|
3047
|
return REF_STR_INFORMAL;
|
3048
|
} else if (reference.getType().equals(ReferenceType.Report)) {
|
3049
|
return REF_STR_NOT_APPLICABLE;
|
3050
|
} else if (reference.getType().equals(ReferenceType.Thesis)) {
|
3051
|
return REF_STR_NOT_APPLICABLE;
|
3052
|
} else {
|
3053
|
logger.warn("Reference type not yet supported in PESI: "+ reference.getType());
|
3054
|
return null;
|
3055
|
}
|
3056
|
}
|
3057
|
|
3058
|
/**
|
3059
|
*
|
3060
|
* @param status
|
3061
|
* @return
|
3062
|
*/
|
3063
|
public static String nomStatus2NomStatusCache(NomenclaturalStatusType status) {
|
3064
|
if (status == null){
|
3065
|
return null;
|
3066
|
}
|
3067
|
if (status.equals(NomenclaturalStatusType.INVALID())) {return NAME_ST_STR_NOM_INVAL;
|
3068
|
}else if (status.equals(NomenclaturalStatusType.ILLEGITIMATE())) {return NAME_ST_STR_NOM_ILLEG;
|
3069
|
}else if (status.equals(NomenclaturalStatusType.NUDUM())) {return NAME_ST_STR_NOM_NUD;
|
3070
|
}else if (status.equals(NomenclaturalStatusType.REJECTED())) {return NAME_ST_STR_NOM_REJ;
|
3071
|
}else if (status.equals(NomenclaturalStatusType.REJECTED_PROP())) {return NAME_ST_STR_NOM_REJ_PROP;
|
3072
|
}else if (status.equals(NomenclaturalStatusType.UTIQUE_REJECTED())) {return NAME_ST_STR_NOM_UTIQUE_REJ;
|
3073
|
}else if (status.equals(NomenclaturalStatusType.UTIQUE_REJECTED_PROP())) {return NAME_ST_STR_NOM_UTIQUE_REJ_PROP;
|
3074
|
}else if (status.equals(NomenclaturalStatusType.CONSERVED())) {return NAME_ST_STR_NOM_CONS;
|
3075
|
|
3076
|
}else if (status.equals(NomenclaturalStatusType.CONSERVED_PROP())) {return NAME_ST_STR_NOM_CONS_PROP;
|
3077
|
}else if (status.equals(NomenclaturalStatusType.ORTHOGRAPHY_CONSERVED())) {return NAME_ST_STR_ORTH_CONS;
|
3078
|
}else if (status.equals(NomenclaturalStatusType.ORTHOGRAPHY_CONSERVED_PROP())) {return NAME_ST_STR_ORTH_CONS_PROP;
|
3079
|
}else if (status.equals(NomenclaturalStatusType.SUPERFLUOUS())) {return NAME_ST_STR_NOM_SUPERFL;
|
3080
|
}else if (status.equals(NomenclaturalStatusType.AMBIGUOUS())) {return NAME_ST_STR_NOM_AMBIG;
|
3081
|
}else if (status.equals(NomenclaturalStatusType.PROVISIONAL())) {return NAME_ST_STR_NOM_PROVIS;
|
3082
|
}else if (status.equals(NomenclaturalStatusType.DOUBTFUL())) {return NAME_ST_STR_NOM_DUB;
|
3083
|
}else if (status.equals(NomenclaturalStatusType.NOVUM())) {return NAME_ST_STR_NOM_NOV;
|
3084
|
|
3085
|
}else if (status.equals(NomenclaturalStatusType.CONFUSUM())) {return NAME_ST_STR_NOM_CONFUS;
|
3086
|
}else if (status.equals(NomenclaturalStatusType.ALTERNATIVE())) {return NAME_ST_STR_NOM_ALTERN;
|
3087
|
}else if (status.equals(NomenclaturalStatusType.COMBINATION_INVALID())) {return NAME_ST_STR_COMB_INVAL;
|
3088
|
}else if (status.equals(NomenclaturalStatusType.LEGITIMATE())) {return NAME_ST_STR_LEGITIMATE;
|
3089
|
|
3090
|
}else if (status.getUuid().equals(BerlinModelTransformer.uuidRelNameCombIned)) {return NAME_ST_STR_COMB_INED;
|
3091
|
|
3092
|
|
3093
|
// The following are non-existent in CDM
|
3094
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_COMB_INED;
|
3095
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_COMB_AND_STAT_INED;
|
3096
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_NOM_AND_ORTH_CONS;
|
3097
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_NOM_NOV_INED;
|
3098
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_SP_NOV_INED;
|
3099
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_ALTERNATE_REPRESENTATION;
|
3100
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_TEMPORARY_NAME;
|
3101
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_SPECIES_INQUIRENDA;
|
3102
|
|
3103
|
//TODO
|
3104
|
}else {
|
3105
|
//TODO Exception
|
3106
|
logger.warn("NomStatus type not yet supported by PESI export: "+ status);
|
3107
|
return null;
|
3108
|
}
|
3109
|
}
|
3110
|
|
3111
|
/**
|
3112
|
*
|
3113
|
* @param status
|
3114
|
* @return
|
3115
|
*/
|
3116
|
public static Integer nomStatus2nomStatusFk (NomenclaturalStatusType status){
|
3117
|
if (status == null){
|
3118
|
return null;
|
3119
|
}
|
3120
|
if (status.equals(NomenclaturalStatusType.INVALID())) {return NAME_ST_NOM_INVAL;
|
3121
|
}else if (status.equals(NomenclaturalStatusType.ILLEGITIMATE())) {return NAME_ST_NOM_ILLEG;
|
3122
|
}else if (status.equals(NomenclaturalStatusType.NUDUM())) {return NAME_ST_NOM_NUD;
|
3123
|
}else if (status.equals(NomenclaturalStatusType.REJECTED())) {return NAME_ST_NOM_REJ;
|
3124
|
}else if (status.equals(NomenclaturalStatusType.REJECTED_PROP())) {return NAME_ST_NOM_REJ_PROP;
|
3125
|
}else if (status.equals(NomenclaturalStatusType.UTIQUE_REJECTED())) {return NAME_ST_NOM_UTIQUE_REJ;
|
3126
|
}else if (status.equals(NomenclaturalStatusType.UTIQUE_REJECTED_PROP())) {return NAME_ST_NOM_UTIQUE_REJ_PROP;
|
3127
|
}else if (status.equals(NomenclaturalStatusType.CONSERVED())) {return NAME_ST_NOM_CONS;
|
3128
|
|
3129
|
}else if (status.equals(NomenclaturalStatusType.CONSERVED_PROP())) {return NAME_ST_NOM_CONS_PROP;
|
3130
|
}else if (status.equals(NomenclaturalStatusType.ORTHOGRAPHY_CONSERVED())) {return NAME_ST_ORTH_CONS;
|
3131
|
}else if (status.equals(NomenclaturalStatusType.ORTHOGRAPHY_CONSERVED_PROP())) {return NAME_ST_ORTH_CONS_PROP;
|
3132
|
}else if (status.equals(NomenclaturalStatusType.SUPERFLUOUS())) {return NAME_ST_NOM_SUPERFL;
|
3133
|
}else if (status.equals(NomenclaturalStatusType.AMBIGUOUS())) {return NAME_ST_NOM_AMBIG;
|
3134
|
}else if (status.equals(NomenclaturalStatusType.PROVISIONAL())) {return NAME_ST_NOM_PROVIS;
|
3135
|
}else if (status.equals(NomenclaturalStatusType.DOUBTFUL())) {return NAME_ST_NOM_DUB;
|
3136
|
}else if (status.equals(NomenclaturalStatusType.NOVUM())) {return NAME_ST_NOM_NOV;
|
3137
|
|
3138
|
}else if (status.equals(NomenclaturalStatusType.CONFUSUM())) {return NAME_ST_NOM_CONFUS;
|
3139
|
}else if (status.equals(NomenclaturalStatusType.ALTERNATIVE())) {return NAME_ST_NOM_ALTERN;
|
3140
|
}else if (status.equals(NomenclaturalStatusType.COMBINATION_INVALID())) {return NAME_ST_COMB_INVAL;
|
3141
|
}else if (status.equals(NomenclaturalStatusType.LEGITIMATE())) {return NAME_ST_LEGITIMATE;
|
3142
|
|
3143
|
}else if (status.getUuid().equals(BerlinModelTransformer.uuidRelNameCombIned)) {return NAME_ST_COMB_INED;
|
3144
|
|
3145
|
|
3146
|
// The following are non-existent in CDM
|
3147
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_COMB_AND_STAT_INED;
|
3148
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_NOM_AND_ORTH_CONS;
|
3149
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_NOM_NOV_INED;
|
3150
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_SP_NOV_INED;
|
3151
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_ALTERNATE_REPRESENTATION;
|
3152
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_TEMPORARY_NAME;
|
3153
|
// }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_SPECIES_INQUIRENDA;
|
3154
|
|
3155
|
//TODO
|
3156
|
}else {
|
3157
|
//TODO Exception
|
3158
|
logger.warn("NomStatus type not yet supported by PESI export: "+ status);
|
3159
|
return null;
|
3160
|
}
|
3161
|
}
|
3162
|
|
3163
|
/**
|
3164
|
* Returns the RelTaxonQualifierCache for a given taxonRelation.
|
3165
|
* @param relation
|
3166
|
* @return
|
3167
|
*/
|
3168
|
public static String taxonRelation2RelTaxonQualifierCache(RelationshipBase<?,?,?> relation, NomenclaturalCode code){
|
3169
|
if (relation == null) {
|
3170
|
return null;
|
3171
|
}
|
3172
|
RelationshipTermBase<?> type = relation.getType();
|
3173
|
if (type.equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR())) {
|
3174
|
return STR_IS_MISAPPLIED_NAME_FOR;
|
3175
|
} else if (type.equals(SynonymRelationshipType.SYNONYM_OF())) {
|
3176
|
return STR_IS_SYNONYM_OF;
|
3177
|
} else if (type.equals(SynonymRelationshipType.HOMOTYPIC_SYNONYM_OF())) {
|
3178
|
if (code.equals(NomenclaturalCode.ICZN)){
|
3179
|
return STR_IS_HOMOTYPIC_SYNONYM_OF_ZOOL;
|
3180
|
}else{
|
3181
|
return STR_IS_HOMOTYPIC_SYNONYM_OF;
|
3182
|
}
|
3183
|
} else if (type.equals(SynonymRelationshipType.HETEROTYPIC_SYNONYM_OF())) {
|
3184
|
if (code.equals(NomenclaturalCode.ICZN)){
|
3185
|
return STR_IS_HETEROTYPIC_SYNONYM_OF_ZOOL;
|
3186
|
}else{
|
3187
|
return STR_IS_HETEROTYPIC_SYNONYM_OF;
|
3188
|
}
|
3189
|
} else if (type.equals(SynonymRelationshipType.INFERRED_EPITHET_OF())) {
|
3190
|
return STR_IS_INFERRED_EPITHET_FOR;
|
3191
|
} else if (type.equals(SynonymRelationshipType.INFERRED_GENUS_OF())) {
|
3192
|
return STR_IS_INFERRED_GENUS_FOR;
|
3193
|
} else if (type.equals(SynonymRelationshipType.POTENTIAL_COMBINATION_OF())) {
|
3194
|
return STR_IS_POTENTIAL_COMBINATION_FOR;
|
3195
|
} else if (type.equals(NameRelationshipType.BASIONYM())) {
|
3196
|
if (code.equals(NomenclaturalCode.ICZN)){
|
3197
|
return STR_IS_BASIONYM_FOR_ZOOL;
|
3198
|
}else{
|
3199
|
return STR_IS_BASIONYM_FOR;
|
3200
|
}
|
3201
|
} else if (type.equals(NameRelationshipType.LATER_HOMONYM())) {
|
3202
|
return STR_IS_LATER_HOMONYM_OF;
|
3203
|
} else if (type.equals(NameRelationshipType.REPLACED_SYNONYM())) {
|
3204
|
return STR_IS_REPLACED_SYNONYM_FOR;
|
3205
|
} else if (type.equals(NameRelationshipType.VALIDATED_BY_NAME())) {
|
3206
|
return STR_IS_VALIDATION_OF;
|
3207
|
} else if (type.equals(NameRelationshipType.LATER_VALIDATED_BY_NAME())) {
|
3208
|
return STR_IS_LATER_VALIDATION_OF;
|
3209
|
} else if (type.equals(NameRelationshipType.CONSERVED_AGAINST())) {
|
3210
|
return STR_IS_CONSERVED_AGAINST;
|
3211
|
} else if (type.equals(NameRelationshipType.TREATED_AS_LATER_HOMONYM())) {
|
3212
|
return STR_IS_TREATED_AS_LATER_HOMONYM_OF;
|
3213
|
} else if (type.equals(NameRelationshipType.ORTHOGRAPHIC_VARIANT())) {
|
3214
|
return STR_IS_ORTHOGRAPHIC_VARIANT_OF;
|
3215
|
} else if (type.equals(NameRelationshipType.ALTERNATIVE_NAME())) {
|
3216
|
return STR_IS_ALTERNATIVE_NAME_FOR;
|
3217
|
} else {
|
3218
|
logger.warn("No equivalent RelationshipType found in datawarehouse for: " + type.getTitleCache());
|
3219
|
}
|
3220
|
|
3221
|
// The following have no equivalent attribute in CDM
|
3222
|
// IS_TYPE_OF
|
3223
|
// IS_CONSERVED_TYPE_OF
|
3224
|
// IS_REJECTED_TYPE_OF
|
3225
|
// IS_FIRST_PARENT_OF
|
3226
|
// IS_SECOND_PARENT_OF
|
3227
|
// IS_FEMALE_PARENT_OF
|
3228
|
// IS_MALE_PARENT_OF
|
3229
|
// IS_REJECTED_IN_FAVOUR_OF
|
3230
|
// HAS_SAME_TYPE_AS
|
3231
|
// IS_LECTOTYPE_OF
|
3232
|
// TYPE_NOT_DESIGNATED
|
3233
|
// IS_PRO_PARTE_SYNONYM_OF
|
3234
|
// IS_PARTIAL_SYNONYM_OF
|
3235
|
// IS_PRO_PARTE_AND_HOMOTYPIC_SYNONYM_OF
|
3236
|
// IS_PRO_PARTE_AND_HETEROTYPIC_SYNONYM_OF
|
3237
|
// IS_PARTIAL_AND_HOMOTYPIC_SYNONYM_OF
|
3238
|
// IS_PARTIAL_AND_HETEROTYPIC_SYNONYM_OF
|
3239
|
|
3240
|
return null;
|
3241
|
}
|
3242
|
|
3243
|
/**
|
3244
|
* Returns the RelTaxonQualifierFk for a TaxonRelation.
|
3245
|
* @param relation
|
3246
|
* @return
|
3247
|
*/
|
3248
|
public static Integer taxonRelation2RelTaxonQualifierFk(RelationshipBase<?,?,?> relation) {
|
3249
|
if (relation == null) {
|
3250
|
return null;
|
3251
|
}
|
3252
|
RelationshipTermBase<?> type = relation.getType();
|
3253
|
if (type.equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR())) {
|
3254
|
return IS_MISAPPLIED_NAME_FOR;
|
3255
|
} else if (type.equals(SynonymRelationshipType.SYNONYM_OF())) {
|
3256
|
return IS_SYNONYM_OF;
|
3257
|
} else if (type.equals(SynonymRelationshipType.HOMOTYPIC_SYNONYM_OF())) {
|
3258
|
return IS_HOMOTYPIC_SYNONYM_OF;
|
3259
|
} else if (type.equals(SynonymRelationshipType.HETEROTYPIC_SYNONYM_OF())) {
|
3260
|
return IS_HETEROTYPIC_SYNONYM_OF;
|
3261
|
} else if (type.equals(SynonymRelationshipType.INFERRED_EPITHET_OF())) {
|
3262
|
return IS_INFERRED_EPITHET_FOR;
|
3263
|
} else if (type.equals(SynonymRelationshipType.INFERRED_GENUS_OF())) {
|
3264
|
return IS_INFERRED_GENUS_FOR;
|
3265
|
} else if (type.equals(SynonymRelationshipType.POTENTIAL_COMBINATION_OF())) {
|
3266
|
return IS_POTENTIAL_COMBINATION_FOR;
|
3267
|
} else if (type.equals(NameRelationshipType.BASIONYM())) {
|
3268
|
return IS_BASIONYM_FOR;
|
3269
|
} else if (type.equals(NameRelationshipType.LATER_HOMONYM())) {
|
3270
|
return IS_LATER_HOMONYM_OF;
|
3271
|
} else if (type.equals(NameRelationshipType.REPLACED_SYNONYM())) {
|
3272
|
return IS_REPLACED_SYNONYM_FOR;
|
3273
|
} else if (type.equals(NameRelationshipType.VALIDATED_BY_NAME())) {
|
3274
|
return IS_VALIDATION_OF;
|
3275
|
} else if (type.equals(NameRelationshipType.LATER_VALIDATED_BY_NAME())) {
|
3276
|
return IS_LATER_VALIDATION_OF;
|
3277
|
} else if (type.equals(NameRelationshipType.CONSERVED_AGAINST())) {
|
3278
|
return IS_CONSERVED_AGAINST;
|
3279
|
} else if (type.equals(NameRelationshipType.TREATED_AS_LATER_HOMONYM())) {
|
3280
|
return IS_TREATED_AS_LATER_HOMONYM_OF;
|
3281
|
} else if (type.equals(NameRelationshipType.ORTHOGRAPHIC_VARIANT())) {
|
3282
|
return IS_ORTHOGRAPHIC_VARIANT_OF;
|
3283
|
} else if (type.equals(NameRelationshipType.ALTERNATIVE_NAME())) {
|
3284
|
return IS_ALTERNATIVE_NAME_FOR;
|
3285
|
} else {
|
3286
|
logger.warn("No equivalent RelationshipType found in datawarehouse for: " + type.getTitleCache());
|
3287
|
}
|
3288
|
|
3289
|
// The following have no equivalent attribute in CDM
|
3290
|
// IS_TYPE_OF
|
3291
|
// IS_CONSERVED_TYPE_OF
|
3292
|
// IS_REJECTED_TYPE_OF
|
3293
|
// IS_FIRST_PARENT_OF
|
3294
|
// IS_SECOND_PARENT_OF
|
3295
|
// IS_FEMALE_PARENT_OF
|
3296
|
// IS_MALE_PARENT_OF
|
3297
|
// IS_REJECTED_IN_FAVOUR_OF
|
3298
|
// HAS_SAME_TYPE_AS
|
3299
|
// IS_LECTOTYPE_OF
|
3300
|
// TYPE_NOT_DESIGNATED
|
3301
|
// IS_PRO_PARTE_SYNONYM_OF
|
3302
|
// IS_PARTIAL_SYNONYM_OF
|
3303
|
// IS_PRO_PARTE_AND_HOMOTYPIC_SYNONYM_OF
|
3304
|
// IS_PRO_PARTE_AND_HETEROTYPIC_SYNONYM_OF
|
3305
|
// IS_PARTIAL_AND_HOMOTYPIC_SYNONYM_OF
|
3306
|
// IS_PARTIAL_AND_HETEROTYPIC_SYNONYM_OF
|
3307
|
|
3308
|
return null;
|
3309
|
}
|
3310
|
|
3311
|
/**
|
3312
|
* Returns the QualityStatusFk for a given QualityStatusCache.
|
3313
|
* @param qualityStatusCache
|
3314
|
* @return
|
3315
|
*/
|
3316
|
public Integer QualityStatusCache2QualityStatusFk(String qualityStatusCache) {
|
3317
|
Integer result = null;
|
3318
|
if (qualityStatusCache.equalsIgnoreCase("Checked by Taxonomic Editor: included in ERMS 1.1")) {
|
3319
|
return 0;
|
3320
|
} else if (qualityStatusCache.equalsIgnoreCase("Added by Database Management Team")) {
|
3321
|
return 2;
|
3322
|
} else if (qualityStatusCache.equalsIgnoreCase("Checked by Taxonomic Editor")) {
|
3323
|
return 3;
|
3324
|
} else if (qualityStatusCache.equalsIgnoreCase("Edited by Database Management Team")) {
|
3325
|
return 4;
|
3326
|
} else {
|
3327
|
logger.error("QualityStatusFk could not be determined. QualityStatusCache unknown: " + qualityStatusCache);
|
3328
|
}
|
3329
|
|
3330
|
return result;
|
3331
|
}
|
3332
|
|
3333
|
/**
|
3334
|
* Returns the FossilStatusFk for a given FossilStatusCache.
|
3335
|
* @param fossilStatusCache
|
3336
|
* @return
|
3337
|
*/
|
3338
|
public Integer FossilStatusCache2FossilStatusFk(String fossilStatusCache) {
|
3339
|
Integer result = null;
|
3340
|
if (fossilStatusCache.equalsIgnoreCase("recent only")) {
|
3341
|
return 1;
|
3342
|
} else if (fossilStatusCache.equalsIgnoreCase("fossil only")) {
|
3343
|
return 2;
|
3344
|
} else if (fossilStatusCache.equalsIgnoreCase("recent + fossil")) {
|
3345
|
return 3;
|
3346
|
} else {
|
3347
|
logger.error("FossilStatusFk could not be determined. FossilStatusCache unknown: " + fossilStatusCache);
|
3348
|
}
|
3349
|
|
3350
|
return result;
|
3351
|
}
|
3352
|
|
3353
|
/**
|
3354
|
* Returns the NoteCategoryFk for a given UUID representing an ExtensionType.
|
3355
|
* @param uuid
|
3356
|
* @return
|
3357
|
*/
|
3358
|
public static Integer getNoteCategoryFk(UUID uuid) {
|
3359
|
Integer result = null;
|
3360
|
if (uuid.equals(taxCommentUuid)) {
|
3361
|
result = 270;
|
3362
|
} else if (uuid.equals(fauCommentUuid)) {
|
3363
|
result = 281;
|
3364
|
} else if (uuid.equals(fauExtraCodesUuid)) {
|
3365
|
result = 278;
|
3366
|
}
|
3367
|
return result;
|
3368
|
}
|
3369
|
|
3370
|
/**
|
3371
|
* Returns the NoteCategoryCache for a given UUID representing an ExtensionType.
|
3372
|
* @param uuid
|
3373
|
* @return
|
3374
|
*/
|
3375
|
public static String getNoteCategoryCache(UUID uuid) {
|
3376
|
String result = null;
|
3377
|
if (uuid.equals(taxCommentUuid)) {
|
3378
|
result = "Taxonomy";
|
3379
|
} else if (uuid.equals(fauCommentUuid)) {
|
3380
|
result = "Biology";
|
3381
|
} else if (uuid.equals(fauExtraCodesUuid)) {
|
3382
|
result = "Distribution";
|
3383
|
}
|
3384
|
return result;
|
3385
|
}
|
3386
|
|
3387
|
}
|