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.out;
|
11
|
|
12
|
import eu.etaxonomy.cdm.io.common.mapping.UndefinedTransformerMethodException;
|
13
|
import eu.etaxonomy.cdm.model.common.ExtensionType;
|
14
|
import eu.etaxonomy.cdm.model.common.Language;
|
15
|
import eu.etaxonomy.cdm.model.description.Feature;
|
16
|
import eu.etaxonomy.cdm.model.description.PresenceAbsenceTerm;
|
17
|
import eu.etaxonomy.cdm.model.location.NamedArea;
|
18
|
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
|
19
|
|
20
|
|
21
|
/**
|
22
|
* Interface for import and export transformer classes. Mainly to transform defined terms.
|
23
|
* @author a.mueller
|
24
|
* @created 15.03.2010
|
25
|
* @version 1.0
|
26
|
*/
|
27
|
public interface IExportTransformer {
|
28
|
|
29
|
//Feature
|
30
|
public Object getKeyByFeature(Feature feature) throws UndefinedTransformerMethodException;
|
31
|
public String getCacheByFeature(Feature feature) throws UndefinedTransformerMethodException;
|
32
|
|
33
|
//Language
|
34
|
public Object getKeyByLanguage(Language language) throws UndefinedTransformerMethodException;
|
35
|
public String getCacheByLanguage(Language language) throws UndefinedTransformerMethodException;
|
36
|
|
37
|
//Extension Type
|
38
|
public Object getKeyByExtensionType(ExtensionType extensionType) throws UndefinedTransformerMethodException;
|
39
|
public String getCacheByExtensionType(ExtensionType language) throws UndefinedTransformerMethodException;
|
40
|
|
41
|
//Presence Term
|
42
|
public Object getKeyByPresenceAbsenceTerm(PresenceAbsenceTerm term) throws UndefinedTransformerMethodException;
|
43
|
public String getCacheByPresenceAbsenceTerm(PresenceAbsenceTerm term) throws UndefinedTransformerMethodException;
|
44
|
|
45
|
//NamedArea
|
46
|
public Object getKeyByNamedArea(NamedArea area) throws UndefinedTransformerMethodException;
|
47
|
public String getCacheByNamedArea(NamedArea area) throws UndefinedTransformerMethodException;
|
48
|
|
49
|
//Nomenclatural status
|
50
|
public Object getKeyByNomStatus(NomenclaturalStatusType status) throws UndefinedTransformerMethodException;
|
51
|
public String getCacheByNomStatus(NomenclaturalStatusType status) throws UndefinedTransformerMethodException;
|
52
|
|
53
|
//Quality status,only needed for PESI export -> TODO refactor
|
54
|
public String getQualityStatusCacheByKey(Integer qualityStatusFk) throws UndefinedTransformerMethodException;
|
55
|
|
56
|
//Taxon status only needed for PESI export -> TODO refactor
|
57
|
public String getTaxonStatusCacheByKey(Integer taxonStatusId) throws UndefinedTransformerMethodException;
|
58
|
|
59
|
|
60
|
}
|