Project

General

Profile

Download (21 KB) Statistics
| Branch: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 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

    
11
package eu.etaxonomy.cdm.io.eflora.centralAfrica.ferns;
12

    
13
import java.util.UUID;
14

    
15
import org.apache.commons.lang.StringUtils;
16
import org.apache.log4j.Logger;
17

    
18
import eu.etaxonomy.cdm.io.common.TdwgAreaProvider;
19
import eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase;
20
import eu.etaxonomy.cdm.io.common.mapping.UndefinedTransformerMethodException;
21
import eu.etaxonomy.cdm.model.common.ExtensionType;
22
import eu.etaxonomy.cdm.model.common.MarkerType;
23
import eu.etaxonomy.cdm.model.description.Feature;
24
import eu.etaxonomy.cdm.model.description.PresenceTerm;
25
import eu.etaxonomy.cdm.model.location.NamedArea;
26
import eu.etaxonomy.cdm.model.location.Country;
27

    
28
/**
29
 * @author a.mueller
30
 * @created 01.03.2010
31
 * @version 1.0
32
 */
33
public final class CentralAfricaFernsTransformer extends InputTransformerBase {
34
	@SuppressWarnings("unused")
35
	private static final Logger logger = Logger.getLogger(CentralAfricaFernsTransformer.class);
36
	
37
	//Extensions
38
	public static UUID uuidFascicle = UUID.fromString("718bb2d6-dbcd-4e60-9cfa-154a59461ef4");
39
	public static UUID uuidNomenclaturalRemarks = UUID.fromString("ea7ceb5c-1b31-47b2-8544-89c90aed3a44");
40
	public static UUID uuidNamePublishedAs = UUID.fromString("8eb258aa-6342-49cd-ad7b-185a3e879031");
41
	public static UUID uuidIllustrationsNonOriginal = UUID.fromString("b0beb324-76a6-4f76-9e0c-413383782329");
42
		
43
	
44
	//NamedAreas
45
	public static UUID uuidZanzibar = UUID.fromString("8d7dc5e2-43a6-4e7d-af29-a43cf62ca212");
46
	public static UUID uuidAnnobon = UUID.fromString("a90c534e-d079-4525-82be-6a35c111f0ab");
47
	public static UUID uuidDiegoGarcia = UUID.fromString("62341ff2-516e-4e4f-951e-53d9a7acaf17");
48
	public static UUID uuidPemba = UUID.fromString("21230ed0-1a06-4a37-ae6e-55d67bd946c3");
49
	public static UUID uuidStoAntao = UUID.fromString("9bd9cb1f-43e3-4b90-8cf8-fa3439b51fe2");
50
	public static UUID uuidSaoVicente = UUID.fromString("77cd4a69-c876-49e8-8227-a12972bf1184");
51
	public static UUID uuidSaoNicolau = UUID.fromString("634e5d6a-11b3-4da6-b73a-bf9de90ea589");
52
	public static UUID uuidFogo = UUID.fromString("6f04c3fe-a226-4071-b945-ac87c96e1c4b");
53
	public static UUID uuidBrava = UUID.fromString("19430d50-c2ee-4a78-a7b3-a7c643741475");
54
	public static UUID uuidGrandeComore = UUID.fromString("20777d55-2370-4741-a6f9-077a3a5ddb1e");
55
	public static UUID uuidGough = UUID.fromString("e139d74f-27dd-4e0a-a927-fcb8c5308325");
56
	public static UUID uuidMiddleIslandTristanDaCunha = UUID.fromString("2d228eda-d1ad-405b-8f3a-a7c471cbd791");
57
	public static UUID uuidCerfs = UUID.fromString("267cf857-ef09-47d9-9779-a8b71166aa7f");
58
	public static UUID uuidSoqotra = UUID.fromString("3734f10e-c2f1-426e-9c6b-488b468240b9");
59
	public static UUID uuidJohannaIsl = UUID.fromString("852a369f-c501-4451-80ed-360ff8253184");
60
	public static UUID uuidTenerife = UUID.fromString("73a9a469-1e5a-4781-9121-d307e1379c10");
61
	public static UUID uuidGranCanaria = UUID.fromString("8f1e7b58-c459-47d4-9899-dff9eac8edc1");
62
	public static UUID uuidLanzarote = UUID.fromString("5490408a-e32e-4f4e-b1d9-62851b218e8e");
63
	public static UUID uuidFuerteventura = UUID.fromString("da4ad5f0-646f-4052-b313-a0d9dc8c46ea");
64
	public static UUID uuidHierro = UUID.fromString("b6cbd29d-f3b7-46b3-a30f-e9f1adfe0ea7");
65
	public static UUID uuidGomera = UUID.fromString("65ef14b2-859e-4b69-bccb-c42c6b494854");
66
	public static UUID uuidLaPalma = UUID.fromString("3f4eb88f-52f4-40b9-a5bb-068081ef0f1f");
67
	public static UUID uuidFlores = UUID.fromString("2a601fcd-abf2-498d-ada8-ee474f3a16b1");
68
	public static UUID uuidFaial = UUID.fromString("a94fa265-ec5e-4a48-a18e-8644e3a1cc3c");
69
	public static UUID uuidAnjouan = UUID.fromString("cf601ab3-acdf-4d31-92de-953fd304705b");
70
	public static UUID uuidSilhouette = UUID.fromString("4e1b5b36-1d35-4e30-a396-12a227b235e2");
71
	public static UUID uuidLongIslandSeychelles = UUID.fromString("26450454-cae5-4767-a8ca-f6e6e82fc1e3");
72
	public static UUID uuidInaccessible = UUID.fromString("cfe55681-1fe0-4ca7-81af-ea684d74db53");
73
	public static UUID uuidBoavista = UUID.fromString("034f8734-1d90-4f92-8e6d-11a90e696820");
74
	public static UUID uuidMaio = UUID.fromString("034f8734-1d90-4f92-8e6d-11a90e696820");
75
	public static UUID uuidStLuzia = UUID.fromString("d31471eb-7c39-43a1-b571-a3fb11a2f104");
76
	public static UUID uuidNightingaleIs = UUID.fromString("54105a68-e01b-41af-ba98-1b99fc8ccd03");
77
	public static UUID uuidMohely = UUID.fromString("06e57bcd-b598-4176-aa69-0aa71ce1e2a1");
78
	public static UUID uuidSantaMaria = UUID.fromString("c5b56013-ed2d-4756-aa8d-d3be55a5b6b2");
79
	public static UUID uuidSaoMiguel = UUID.fromString("94121376-3e77-47ad-8015-4c6c2ae35b36");
80
	public static UUID uuidTerceira = UUID.fromString("193d3300-d41d-4c89-9159-7318d679ef6b");
81
	public static UUID uuidDesertas = UUID.fromString("83107c67-038f-4d1e-b13c-6ec050e4f498");
82
	public static UUID uuidPortoSanto = UUID.fromString("403cd0d8-af72-4f7e-ad2f-a01350e07b28");
83
	public static UUID uuidMahe = UUID.fromString("3130d493-cc71-463e-bdc0-dad9eb909459");
84
	public static UUID uuidParslin = UUID.fromString("af3dfce1-10fb-471d-83f5-a92ab18987b8");
85
	public static UUID uuidStoltenhoff = UUID.fromString("6ff68f76-0bb9-45e7-900c-ea78ee28e415");
86
	public static UUID uuidOmoroIs = UUID.fromString("715d3872-1693-4217-a45e-b36cdeba51be");
87
	public static UUID uuidMoorea = UUID.fromString("40a49403-d178-4789-86d6-13aad498ba4c");
88
	
89
	
90

    
91
	
92
//	69e62cb6-e0ea-4886-8c52-5aa6de6bee74
93
//	54715820-f15e-4ad1-b7a4-2a0e5967c931
94
//	baaec166-6df9-4a55-b3c7-465982e481bb
95

    
96
	@Override
97
	public NamedArea getNamedAreaByKey(String key) throws UndefinedTransformerMethodException {
98
		if (StringUtils.isBlank(key)){return null;
99
		}else if (key.equalsIgnoreCase("DRC")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("CON-OO");
100
		}else if (key.matches("C[\u00F4o]t[e��] d'Ivoire")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("IVO-OO");
101
		}else if (key.equalsIgnoreCase("Gambia")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("GAM-OO");
102
		}else if (key.matches("Sout?h Af?rica")){return Country.getCountryByLabel("South Africa, Republic of");
103
		}else if (key.matches("Equ[ai]torial? Guinea")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("EQG-OO");
104
		}else if (key.equalsIgnoreCase("Spanish Moroco")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("MOR-SP");
105
		}else if (key.matches("Co?[mn]o[rl][oe] [iI]sl?\\.")|| key.equalsIgnoreCase("Comores")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("COM-CO");
106
		}else if (key.matches("(La )?R[e\u00c9]un?ion\\.?")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("REU-OO");
107
		}else if (key.equalsIgnoreCase("Lybia")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("LBY-OO");
108
		}else if (key.matches("St He[lr]ena")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("STH-OO");
109
		}else if (key.equalsIgnoreCase("Amsterdam Isl.")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("ASP-OO");
110
		}else if (key.equalsIgnoreCase("Crozet isl.")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("CRZ-OO");
111
		}else if (key.matches("Pr?[i�]nci[pl]e")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("GGI-PR");
112
		}else if (key.equalsIgnoreCase("Marion Isl.") || key.matches("Prince Ed[uw]ard Isl.") ){return TdwgAreaProvider.getAreaByTdwgAbbreviation("MPE-OO");
113
		}else if (key.matches("Tan?z?an(ia|ai)")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("TAN-OO");
114
		}else if (key.matches("Cana[rt]y [iI]sl.")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("CNY-OO");
115
		}else if (key.equalsIgnoreCase("Azores")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("AZO-OO");
116
		}else if (key.matches("Rodri[gq]ue[sz]( Isl?(and)?\\.?)?")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("ROD-OO");
117
		}else if (key.equalsIgnoreCase("Ascension Island")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("ASC-OO");
118
		}else if (key.matches("S[a\u00E3]o Tom[e\u00c9]")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("GGI-ST");
119
		}else if (key.matches("Marquesas Is.")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("MRQ-OO");
120
		}else if (key.matches("Equador")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("ECU-OO");
121
		}else if (key.matches("Norfolk Isl.")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("NFK");
122
		}else if (key.matches("[cC]ape Ver[db]e Isl\\.?")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("CVI-OO");
123
		}else if (key.matches("Sey(h|cl)elles")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("SEY-OO");
124
		}else if (key.matches("Ma?dagas?c?ar")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("MDG-OO");
125
		}else if (key.matches("Malay Peninsula")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("MLY-PM");
126
		}else if (key.matches("Si?erra [lL]eone")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("SIE-OO");
127
		}else if (key.matches("[mM]auri(tius|ce)")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("MAU-OO");
128
		}else if (key.matches("Kena")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("KEN-OO");
129
		}else if (key.matches("Ma[yj]otte")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("COM-MA");
130
		}else if (key.matches("Cent?ral Africa?n? Republic")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("CAF-OO");
131
		}else if (key.matches("Guiea")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("GUI-OO");
132
		}else if (key.matches("Swazialnd")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("SWZ-OO");
133
		}else if (key.matches("Guinea Bissau")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("GNB-OO");
134
		}else if (key.matches("Za[nm]bia")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("ZAM-OO");
135
		}else if (key.matches("Western Cape")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("CPP-WC");
136
		}else if (key.matches("U?gan[gd]a")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("UGA-OO");
137
		}else if (key.matches("Mo[zx]?ambique")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("MOZ-OO");
138
		}else if (key.matches("Tchad")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("CHA-OO");
139
		}else if (key.matches("Tri?[sa]t?an da Cunha")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("TDC-OO");
140
		}else if (key.matches("Camero?on")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("CMN-OO");
141
		}else if (key.matches("also in China")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("36");
142
		}else if (key.matches("Java")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("JAW-OO");
143
		}else if (key.matches("Burma")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("MYA-OO");
144
		}else if (key.matches("French Guinea")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("GUI-OO");
145
		}else if (key.matches("Bourbon")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("REU-OO");
146
		}else if (key.matches("Sumatra")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("SUM-OO");
147
		}else if (key.matches("Gana")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("GHA-OO");
148
		}else if (key.matches("Lestho")){return TdwgAreaProvider.getAreaByTdwgAbbreviation("LES-OO");
149
		
150
		
151
		}else{
152
			return null;
153
		}
154
	}
155
	
156
	@Override
157
	public UUID getNamedAreaUuid(String key) throws UndefinedTransformerMethodException {
158
		if (StringUtils.isBlank(key)){return null;
159
		//Teilstaat des Unionsstaates Tansania
160
		}else if (key.equalsIgnoreCase("Zanzibar")){return uuidZanzibar;
161
		//Annobon (port. Ano Bom) ist eine Insel im Golf von Guinea und gleichzeitig eine der sieben Provinzen �quatorialguineas mit der Hauptstadt San Antonio de Pal�.
162
		}else if (key.matches("Anno?[bn]on")){return uuidAnnobon;
163
		//Diego Garcia ist nach der Landfl�che das gr��te Atoll des Chagos-Archipels,
164
		}else if (key.equalsIgnoreCase("Diego Garcia")){return uuidDiegoGarcia;
165
		//Pemba ist die zweitgr��te Insel des ostafrikanischen Sansibar-Archipels. Gemeinsam mit der 50 km s�dlich gelegenen Insel Unguja und zahlreichen kleinen Nebeninseln bildet Pemba den halbautonomen Teilstaat �Sansibar� in Tansania.
166
		}else if (key.matches("Pemba( Isl.)?")){return uuidPemba;
167
		//Santo Ant�o (port. f�r Heiliger Antonius) ist mit 779 km� die zweitgr��te der Kapverdischen Inseln im Atlantik. 
168
		}else if (key.matches("S(an)?(to?)?\\.? Ant[\u00E3a]o") ){return uuidStoAntao;
169
		//Sao Vicente  ist eine der kleineren Kapverdischen Inseln im Atlantik
170
		}else if (key.matches("S(\u00E3o)?\\.? Vicente")){return uuidSaoVicente;
171
		//Sao Nicolau (dt.: �Sankt Nikolaus�) ist eine der kleineren (388 km�) und gebirgigen Kapverdischen Inseln im Norden des Archipels.
172
		}else if (key.matches("S(\\.|\u00E3o) Nicolau")){return uuidSaoNicolau;
173
		//Fogo - Kap Verde
174
		}else if (key.equalsIgnoreCase("Fogo")){return uuidFogo;
175
		//Brava ist die kleinste der bewohnten Kapverdischen Inseln im Atlantik.
176
		}else if (key.matches("Br[ao]v[ao]")){return uuidBrava;
177
		//Grande Comore - Comores
178
		}else if (key.matches("Grande Comor[eo]")){return uuidGrandeComore;
179
		//Gough ist eine hohe vulkanische Insel im Atlantischen Ozean, die zur Inselgruppe Tristan da Cunha geh�rt.
180
		}else if (key.matches("Gough Isl(\\.|and)?")){return uuidGough;
181
		//Middle Island ist eine Insel im S�datlantik, gelegen zwischen Nightingale Island und Stoltenhoff Island. Sie ist Teil der Inselgruppe Tristan da Cunha und geh�rt somit zum Britischen �berseegebiet St. Helena.
182
		}else if (key.matches("Middle Isl(\\.|and)?")){return uuidMiddleIslandTristanDaCunha;
183
		//Die �le aux Cerfs (w�rtlich �bersetzt �Hirscheninsel�) ist eine kleine Insel �stlich von Mauritius im Indischen Ozean.
184
		}else if (key.equalsIgnoreCase("Ile aux Cerfs")){return uuidCerfs;
185
		//Sokotra ist eine Insel im nordwestlichen Indischen Ozean.
186
		}else if (key.equalsIgnoreCase("Soqotra")){return uuidSoqotra;
187
		//Johanna Isl.
188
		}else if (key.matches("Johanna( Isl\\.?)?")){return uuidJohannaIsl;
189
		//Tenerife
190
		}else if (key.equalsIgnoreCase("Tenerife")){return uuidTenerife;
191
		//Gran Canaria
192
		}else if (key.matches("Gran Canar(ia|y)")){return uuidGranCanaria;
193
		//Lanzarote
194
		}else if (key.matches("Lanzarote")){return uuidLanzarote;
195
		//Fuerteventura
196
		}else if (key.matches("Fuerteventura")){return uuidFuerteventura;
197
		//Gomera
198
		}else if (key.matches("Gomera")){return uuidGomera;
199
		//Hierro
200
		}else if (key.matches("Hierro")){return uuidHierro;
201
		//La Palma
202
		}else if (key.matches("(La )?Palma")){return uuidLaPalma;
203
		//Flores
204
		}else if (key.matches("Flores")){return uuidFlores;
205
		//Faial ist eine Gemeinde an der Nordk�ste Madeiras im Kreis Santan
206
		}else if (key.equalsIgnoreCase("Faial")){return uuidFaial;
207
		//Anjouan (komorisch Ndzouani) ist eine der vier Inseln der Komoren.
208
		}else if (key.equalsIgnoreCase("Anjouan")){return uuidAnjouan;
209
		//Silhouette ist eine Insel der Seychellen in der Inselgruppe um Mah�.
210
		}else if (key.matches("Silhouette( Isl?(and)?\\.)?")){return uuidSilhouette;
211
		//Long Island : Seychellen (es gibt auch andere Long Islands)
212
		}else if (key.matches("Long Island")){return uuidLongIslandSeychelles;
213
		//Inaccessible Islands sind eine Gruppe kleiner, unbewohnter Inseln im Archipel der S�dlichen Orkneyinseln im S�dpolarmeer.
214
		}else if (key.matches("Inaccessibl[ea] Isl(and)?\\.?")){return uuidInaccessible;
215
		//Boa Vista (dt.: �Sch�ner Anblick�), auch Boavista geschrieben, ist die drittgr��te der Kapverdischen Inseln im Zentralatlantik.
216
		}else if (key.equalsIgnoreCase("Boavista")){return uuidBoavista;
217
		//Maio ist eine der neun bewohnten Kapverdischen Inseln im Atlantik.
218
		}else if (key.equalsIgnoreCase("Maio")){return uuidMaio;
219
		//Sta. Luzia
220
		}else if (key.equalsIgnoreCase("Sta. Luzia")){return uuidStLuzia;
221
		//Nightingale Islands
222
		}else if (key.matches("Nightingale Isl(and)?\\.?")){return uuidNightingaleIs;
223
		//Moh�ly ??
224
		}else if (key.matches("Moh[�e]ll?[yi]")){return uuidMohely;
225
		//Santa Maria ist die geologisch �lteste Insel der Azoren im Atlantischen Ozean
226
		}else if (key.matches("Santa Maria")){return uuidSantaMaria;
227
		//S�o Miguel ist die gr��te Insel der Azoren. 
228
		}else if (key.matches("S\u00E3o Miguel")){return uuidSaoMiguel;
229
		//Terceira geh�rt zur Zentralgruppe der Azoren.
230
		}else if (key.matches("Terceira")){return uuidTerceira;
231
		//Desertas - Madeira
232
		}else if (key.matches("Desertas")){return uuidDesertas;
233
		//Porto Santo - Madeira
234
		}else if (key.matches("Porto Santo")){return uuidPortoSanto;
235
		//Mah� - Seychelles
236
		}else if (key.matches("Mah[�e]")){return uuidMahe;
237
		//Parslin - Seychelles
238
		}else if (key.matches("Parslin")){return uuidParslin;
239
		//Stoltenhoff Island ist eine unbewohnte Insel im S�datlantik. Stoltenhoff geh�rt, wie die gesamte Inselgruppe Tristan da Cunha, zum Britischen �berseegebiet St. Helena.
240
		}else if (key.matches("Stoltenhoff Isl(and)?\\.?")){return uuidStoltenhoff;
241
		//Comoro Is.??
242
		}else if (key.matches("Omoro Isl.")){return uuidOmoroIs;
243
		//Moorea �ltere Namen Aimeho oder Eimeo (Cook), Santo Domingo (Boenechea) und York Island (Wallis), ist eine Insel im S�d-Pazifik, die politisch zu Franz�sisch-Polynesien geh�rt.
244
		}else if (key.matches("Moorea")){return uuidMoorea;
245
		
246
		}else{
247
			return null;
248
		}
249

    
250
	}
251
	
252
	
253
	
254
	
255
	/* (non-Javadoc)
256
	 * @see eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase#getExtensionTypeByKey(java.lang.String)
257
	 */
258
	@Override
259
	public ExtensionType getExtensionTypeByKey(String key) throws UndefinedTransformerMethodException {
260
		if (key == null){return null;
261
//		}else if (key.equalsIgnoreCase("fascicle")){return getExt;
262
		}
263
		return null;
264
	}
265

    
266
	/* (non-Javadoc)
267
	 * @see eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase#getExtensionTypeUuid(java.lang.String)
268
	 */
269
	@Override
270
	public UUID getExtensionTypeUuid(String key)
271
			throws UndefinedTransformerMethodException {
272
		if (key == null){return null;
273
		}else if (key.equalsIgnoreCase("fascicle")){return uuidFascicle;
274
		}
275
		return null;
276
	}
277

    
278
	
279
	
280
	/* (non-Javadoc)
281
	 * @see eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase#getFeatureByKey(java.lang.String)
282
	 */
283
	@Override
284
	public Feature getFeatureByKey(String key) throws UndefinedTransformerMethodException {
285
		if (StringUtils.isBlank(key)){return null;
286
//		}else if (key.equalsIgnoreCase("distribution")){return Feature.DISTRIBUTION();
287
//		}else if (key.equalsIgnoreCase("habitatecology")){return Feature.ECOLOGY();
288
		}else{
289
			return null;
290
		}
291
	}
292

    
293
	/* (non-Javadoc)
294
	 * @see eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase#getFeatureUuid(java.lang.String)
295
	 */
296
	@Override
297
	public UUID getFeatureUuid(String key) 	throws UndefinedTransformerMethodException {
298
		if (StringUtils.isBlank(key)){return null;
299
//		}else if (key.equalsIgnoreCase("Chromosomes")){return uuidChromosomes;
300
//		}else if (key.equalsIgnoreCase("Inflorescence")){return uuidInflorescence;
301

    
302
		
303
		
304
		}else{
305
			return null;
306
		}
307
		
308
	}
309

    
310
	
311

    
312
	/* (non-Javadoc)
313
	 * @see eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase#getMarkerTypeByKey(java.lang.String)
314
	 */
315
	@Override
316
	public MarkerType getMarkerTypeByKey(String key) throws UndefinedTransformerMethodException {
317
		if (StringUtils.isBlank(key)){return null;
318
//		}else if (key.equalsIgnoreCase("distribution")){return MarkerType.;
319
//		}else if (key.equalsIgnoreCase("habitatecology")){return Feature.ECOLOGY();
320
		}else{
321
			return null;
322
		}
323
	}
324

    
325
	@Override
326
	public UUID getMarkerTypeUuid(String key) throws UndefinedTransformerMethodException {
327
		if (StringUtils.isBlank(key)){return null;
328
//		}else if (key.equalsIgnoreCase("IMPERFECTLY KNOWN SPECIES")){return uuidIncompleteTaxon;
329
		}else{
330
			return null;
331
		}
332

    
333
	}
334

    
335
	
336
	@Override
337
	public PresenceTerm getPresenceTermByKey(String key) throws UndefinedTransformerMethodException {
338
		if (StringUtils.isBlank(key)){return null;
339
		}else if (key.equalsIgnoreCase("introduced")){return PresenceTerm.INTRODUCED();
340
		}else if (key.equalsIgnoreCase("endemic")){return PresenceTerm.ENDEMIC_FOR_THE_RELEVANT_AREA();
341
		}else if (key.equalsIgnoreCase("naturalised")){return PresenceTerm.NATURALISED();
342
		}else if (key.equalsIgnoreCase("introduced?")){return PresenceTerm.INTRODUCED_DOUBTFULLY_INTRODUCED();
343
		}else{
344
			return null;
345
		}
346
	}
347

    
348
	@Override
349
	public UUID getPresenceTermUuid(String key) throws UndefinedTransformerMethodException {
350
		if (StringUtils.isBlank(key)){return null;
351
//		}else if (key.equalsIgnoreCase("IN")){return indigenousUuid;
352
//		}else if (key.equalsIgnoreCase("CA")){return casualUuid;
353
//		}else if (key.equalsIgnoreCase("NN")){return nonInvasiveUuid;
354
//		}else if (key.equalsIgnoreCase("NA")){return invasiveUuid;
355
//		}else if (key.equalsIgnoreCase("Q")){return questionableUuid;
356
//		}else if (key.equalsIgnoreCase("IN?")){return indigenousDoubtfulUuid;
357
//		}else if (key.equalsIgnoreCase("CA?")){return casualDoubtfulUuid;
358
//		}else if (key.equalsIgnoreCase("NN?")){return nonInvasiveDoubtfulUuid;
359
//		}else if (key.equalsIgnoreCase("NA?")){return invasiveDoubtfulUuid;
360
//		}else if (key.equalsIgnoreCase("Q?")){return questionableDoubtfulUuid;
361
//		}else if (key.equalsIgnoreCase("CU?")){return cultivatedDoubtfulUuid;
362
		}else{
363
			return null;
364
		}
365

    
366
	}
367
	
368
}
(7-7/7)