Project

General

Profile

Download (1.89 KB) Statistics
| Branch: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9

    
10
package eu.etaxonomy.cdm.io.caryo;
11

    
12
import java.util.UUID;
13

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

    
17
import eu.etaxonomy.cdm.io.common.mapping.InputTransformerBase;
18
import eu.etaxonomy.cdm.io.common.mapping.UndefinedTransformerMethodException;
19
import eu.etaxonomy.cdm.model.common.MarkerType;
20

    
21
/**
22
 * @author a.mueller
23
 * @since 01.03.2010
24
 */
25
public final class CaryoTransformer extends InputTransformerBase {
26

    
27
    private static final long serialVersionUID = 4211928286547705792L;
28
    @SuppressWarnings("unused")
29
	private static final Logger logger = Logger.getLogger(CaryoTransformer.class);
30

    
31

    
32
	//feature
33
//	public static final UUID endemismUuid =  UUID.fromString("dd343c31-1916-4786-a530-536ea995dce4");
34

    
35
	@Override
36
	public MarkerType getMarkerTypeByKey(String key) throws UndefinedTransformerMethodException {
37
		if (StringUtils.isBlank(key)){return null;
38
//		}else if (key.equalsIgnoreCase("distribution")){return MarkerType.;
39
//		}else if (key.equalsIgnoreCase("habitatecology")){return Feature.ECOLOGY();
40
		}else{
41
			return null;
42
		}
43
	}
44

    
45
	@Override
46
	public UUID getMarkerTypeUuid(String key) throws UndefinedTransformerMethodException {
47
		if (StringUtils.isBlank(key)){return null;
48
//		}else if (key.equalsIgnoreCase("IMPERFECTLY KNOWN SPECIES")){return uuidIncompleteTaxon;
49
		}else{
50
			return null;
51
		}
52
	}
53

    
54

    
55

    
56
	@Override
57
	public UUID getFeatureUuid(String key) throws UndefinedTransformerMethodException {
58
		if (StringUtils.isBlank(key)){return null;
59
//		}else if (key.equalsIgnoreCase("Endemism")){return endemismUuid;
60
		}else{
61
			return null;
62
		}
63

    
64
	}
65

    
66

    
67
}
(4-4/4)