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.common.mapping;
|
11
|
|
12
|
import java.util.UUID;
|
13
|
|
14
|
import eu.etaxonomy.cdm.model.common.DefinedTerm;
|
15
|
import eu.etaxonomy.cdm.model.common.ExtensionType;
|
16
|
import eu.etaxonomy.cdm.model.common.Language;
|
17
|
import eu.etaxonomy.cdm.model.common.MarkerType;
|
18
|
import eu.etaxonomy.cdm.model.description.Feature;
|
19
|
import eu.etaxonomy.cdm.model.description.PresenceAbsenceTerm;
|
20
|
import eu.etaxonomy.cdm.model.description.State;
|
21
|
import eu.etaxonomy.cdm.model.location.NamedArea;
|
22
|
import eu.etaxonomy.cdm.model.location.NamedAreaLevel;
|
23
|
import eu.etaxonomy.cdm.model.location.ReferenceSystem;
|
24
|
import eu.etaxonomy.cdm.model.name.NameTypeDesignationStatus;
|
25
|
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
|
26
|
import eu.etaxonomy.cdm.model.name.Rank;
|
27
|
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus;
|
28
|
|
29
|
|
30
|
/**
|
31
|
* Interface for import and export transformer classes. Mainly to transform defined terms.
|
32
|
* @author a.mueller
|
33
|
* @since 15.03.2010
|
34
|
*/
|
35
|
public interface IInputTransformer {
|
36
|
|
37
|
//Feature
|
38
|
public Feature getFeatureByKey(String key) throws UndefinedTransformerMethodException;
|
39
|
|
40
|
public UUID getFeatureUuid(String key) throws UndefinedTransformerMethodException;
|
41
|
|
42
|
//Language
|
43
|
public Language getLanguageByKey(String key) throws UndefinedTransformerMethodException;
|
44
|
|
45
|
public UUID getLanguageUuid(String key) throws UndefinedTransformerMethodException;
|
46
|
|
47
|
//Extension Type
|
48
|
public ExtensionType getExtensionTypeByKey(String key) throws UndefinedTransformerMethodException;
|
49
|
|
50
|
public UUID getExtensionTypeUuid(String key) throws UndefinedTransformerMethodException;
|
51
|
|
52
|
//MarkerType
|
53
|
public MarkerType getMarkerTypeByKey(String key) throws UndefinedTransformerMethodException;
|
54
|
|
55
|
public UUID getMarkerTypeUuid(String key) throws UndefinedTransformerMethodException;
|
56
|
|
57
|
//NameTypeDesignationStatus
|
58
|
public NameTypeDesignationStatus getNameTypeDesignationStatusByKey(String key) throws UndefinedTransformerMethodException;
|
59
|
|
60
|
public UUID getNameTypeDesignationStatusUuid(String key) throws UndefinedTransformerMethodException;
|
61
|
|
62
|
|
63
|
//SpecimenTypeDesignationStatus
|
64
|
public SpecimenTypeDesignationStatus getSpecimenTypeDesignationStatusByKey(String key) throws UndefinedTransformerMethodException;
|
65
|
|
66
|
public UUID getSpecimenTypeDesignationStatusUuid(String key) throws UndefinedTransformerMethodException;
|
67
|
|
68
|
|
69
|
//Presence Term
|
70
|
public PresenceAbsenceTerm getPresenceTermByKey(String key) throws UndefinedTransformerMethodException;
|
71
|
|
72
|
public UUID getPresenceTermUuid(String key) throws UndefinedTransformerMethodException;
|
73
|
|
74
|
//Named area
|
75
|
public NamedArea getNamedAreaByKey(String key) throws UndefinedTransformerMethodException;
|
76
|
|
77
|
public UUID getNamedAreaUuid(String key) throws UndefinedTransformerMethodException;
|
78
|
|
79
|
//named area level
|
80
|
public NamedAreaLevel getNamedAreaLevelByKey(String key) throws UndefinedTransformerMethodException;
|
81
|
|
82
|
public UUID getNamedAreaLevelUuid(String key) throws UndefinedTransformerMethodException;
|
83
|
|
84
|
//reference system
|
85
|
public UUID getReferenceSystemUuid(String key) throws UndefinedTransformerMethodException;
|
86
|
|
87
|
public ReferenceSystem getReferenceSystemByKey(String key) throws UndefinedTransformerMethodException;
|
88
|
|
89
|
//rank
|
90
|
//Feature
|
91
|
public Rank getRankByKey(String key) throws UndefinedTransformerMethodException;
|
92
|
|
93
|
public UUID getRankUuid(String key) throws UndefinedTransformerMethodException;
|
94
|
|
95
|
//state
|
96
|
public State getStateByKey(String key) throws UndefinedTransformerMethodException;
|
97
|
|
98
|
public UUID getStateUuid(String key) throws UndefinedTransformerMethodException;
|
99
|
|
100
|
public NomenclaturalStatusType getNomenclaturalStatusByKey(String key) throws UndefinedTransformerMethodException;
|
101
|
|
102
|
public DefinedTerm getIdentifierTypeByKey(String key) throws UndefinedTransformerMethodException;
|
103
|
|
104
|
public UUID getIdentifierTypeUuid(String key) throws UndefinedTransformerMethodException;
|
105
|
|
106
|
}
|