3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.cdm
.io
.caryo
;
13 import java
.util
.UUID
;
15 import org
.apache
.commons
.lang
.StringUtils
;
16 import org
.apache
.log4j
.Logger
;
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
;
27 public final class CaryoTransformer
extends InputTransformerBase
{
28 @SuppressWarnings("unused")
29 private static final Logger logger
= Logger
.getLogger(CaryoTransformer
.class);
33 // public static final UUID endemismUuid = UUID.fromString("dd343c31-1916-4786-a530-536ea995dce4");
38 * @see eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase#getMarkerTypeByKey(java.lang.String)
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();
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;
63 public UUID
getFeatureUuid(String key
) throws UndefinedTransformerMethodException
{
64 if (StringUtils
.isBlank(key
)){return null;
65 // }else if (key.equalsIgnoreCase("Endemism")){return endemismUuid;