some import changes
[cdmlib.git] / app-import / src / main / java / eu / etaxonomy / cdm / io / eflora / centralAfrica / ferns / CentralAfricaFernsTransformer.java
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.log4j.Logger;
16
17 import eu.etaxonomy.cdm.common.CdmUtils;
18 import eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase;
19 import eu.etaxonomy.cdm.io.common.mapping.UndefinedTransformerMethodException;
20 import eu.etaxonomy.cdm.model.common.MarkerType;
21 import eu.etaxonomy.cdm.model.description.Feature;
22
23 /**
24 * @author a.mueller
25 * @created 01.03.2010
26 * @version 1.0
27 */
28 public final class CentralAfricaFernsTransformer extends InputTransformerBase {
29 @SuppressWarnings("unused")
30 private static final Logger logger = Logger.getLogger(CentralAfricaFernsTransformer.class);
31
32
33
34 /* (non-Javadoc)
35 * @see eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase#getFeatureByKey(java.lang.String)
36 */
37 @Override
38 public Feature getFeatureByKey(String key) throws UndefinedTransformerMethodException {
39 if (CdmUtils.isEmpty(key)){return null;
40 // }else if (key.equalsIgnoreCase("distribution")){return Feature.DISTRIBUTION();
41 // }else if (key.equalsIgnoreCase("habitatecology")){return Feature.ECOLOGY();
42 }else{
43 return null;
44 }
45 }
46
47 /* (non-Javadoc)
48 * @see eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase#getFeatureUuid(java.lang.String)
49 */
50 @Override
51 public UUID getFeatureUuid(String key) throws UndefinedTransformerMethodException {
52 if (CdmUtils.isEmpty(key)){return null;
53 // }else if (key.equalsIgnoreCase("Chromosomes")){return uuidChromosomes;
54 // }else if (key.equalsIgnoreCase("Inflorescence")){return uuidInflorescence;
55
56
57
58 }else{
59 return null;
60 }
61
62 }
63
64
65
66 /* (non-Javadoc)
67 * @see eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase#getMarkerTypeByKey(java.lang.String)
68 */
69 @Override
70 public MarkerType getMarkerTypeByKey(String key) throws UndefinedTransformerMethodException {
71 if (CdmUtils.isEmpty(key)){return null;
72 // }else if (key.equalsIgnoreCase("distribution")){return MarkerType.;
73 // }else if (key.equalsIgnoreCase("habitatecology")){return Feature.ECOLOGY();
74 }else{
75 return null;
76 }
77 }
78
79 @Override
80 public UUID getMarkerTypeUuid(String key) throws UndefinedTransformerMethodException {
81 if (CdmUtils.isEmpty(key)){return null;
82 // }else if (key.equalsIgnoreCase("IMPERFECTLY KNOWN SPECIES")){return uuidIncompleteTaxon;
83 }else{
84 return null;
85 }
86
87 }
88
89
90
91
92
93
94 }