4c53384acf1d3ec5e38c7a63425a282388abdf82
[cdmlib-apps.git] / cdmlib-eflora / src / main / java / eu / etaxonomy / cdm / io / eflora / centralAfrica / checklist / CentralAfricaChecklistTransformer.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.checklist;
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.mapping.InputTransformerBase;
19 import eu.etaxonomy.cdm.io.common.mapping.UndefinedTransformerMethodException;
20 import eu.etaxonomy.cdm.model.common.MarkerType;
21
22 /**
23 * @author a.mueller
24 * @created 01.03.2010
25 * @version 1.0
26 */
27 public final class CentralAfricaChecklistTransformer extends InputTransformerBase {
28 @SuppressWarnings("unused")
29 private static final Logger logger = Logger.getLogger(CentralAfricaChecklistTransformer.class);
30
31
32 public static final UUID uuidAcceptedKew = UUID.fromString("c980102c-2e57-4ed3-b608-51a5d9091d89");
33 public static final UUID uuidAcceptedGeneva = UUID.fromString("8c7a0544-c71b-4809-9a2d-0583ff32f833");
34 public static final UUID uuidAcceptedItis = UUID.fromString("0738c566-0219-4e3d-a8fd-8f3d82e2d20f");
35
36
37 /* (non-Javadoc)
38 * @see eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase#getMarkerTypeByKey(java.lang.String)
39 */
40 @Override
41 public MarkerType getMarkerTypeByKey(String key) throws UndefinedTransformerMethodException {
42 if (StringUtils.isBlank(key)){return null;
43 // }else if (key.equalsIgnoreCase("distribution")){return MarkerType.;
44 // }else if (key.equalsIgnoreCase("habitatecology")){return Feature.ECOLOGY();
45 }else{
46 return null;
47 }
48 }
49
50 @Override
51 public UUID getMarkerTypeUuid(String key) throws UndefinedTransformerMethodException {
52 if (StringUtils.isBlank(key)){return null;
53 // }else if (key.equalsIgnoreCase("IMPERFECTLY KNOWN SPECIES")){return uuidIncompleteTaxon;
54 }else{
55 return null;
56 }
57
58 }
59
60
61
62
63
64 }