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 org.apache.logging.log4j.LogManager;
|
13
|
import org.apache.logging.log4j.Logger;
|
14
|
|
15
|
import eu.etaxonomy.cdm.io.common.mapping.UndefinedTransformerMethodException;
|
16
|
import eu.etaxonomy.cdm.model.common.ExtensionType;
|
17
|
import eu.etaxonomy.cdm.model.common.Language;
|
18
|
import eu.etaxonomy.cdm.model.description.Feature;
|
19
|
import eu.etaxonomy.cdm.model.description.PresenceAbsenceTerm;
|
20
|
import eu.etaxonomy.cdm.model.location.NamedArea;
|
21
|
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
|
22
|
|
23
|
/**
|
24
|
* @author a.mueller
|
25
|
* @since 15.03.2010
|
26
|
*/
|
27
|
public class ExportTransformerBase implements IExportTransformer {
|
28
|
|
29
|
@SuppressWarnings("unused")
|
30
|
private static final Logger logger = LogManager.getLogger();
|
31
|
|
32
|
@Override
|
33
|
public Object getKeyByFeature(Feature feature) throws UndefinedTransformerMethodException {
|
34
|
String warning = "getKeyByFeature is not implemented in implementing transformer class";
|
35
|
throw new UndefinedTransformerMethodException(warning);
|
36
|
}
|
37
|
|
38
|
@Override
|
39
|
public String getCacheByFeature(Feature feature) throws UndefinedTransformerMethodException {
|
40
|
String warning = "getCacheByFeature is not implemented in implementing transformer class";
|
41
|
throw new UndefinedTransformerMethodException(warning);
|
42
|
}
|
43
|
|
44
|
@Override
|
45
|
public Object getKeyByLanguage(Language language) throws UndefinedTransformerMethodException {
|
46
|
String warning = "getKeyByLanguage is not implemented in implementing transformer class";
|
47
|
throw new UndefinedTransformerMethodException(warning);
|
48
|
}
|
49
|
|
50
|
/* (non-Javadoc)
|
51
|
* @see eu.etaxonomy.cdm.io.common.mapping.out.IExportTransformer#getCacheByLanguage(eu.etaxonomy.cdm.model.common.Language)
|
52
|
*/
|
53
|
@Override
|
54
|
public String getCacheByLanguage(Language language) throws UndefinedTransformerMethodException {
|
55
|
String warning = "getCacheByLanguage is not implemented in implementing transformer class";
|
56
|
throw new UndefinedTransformerMethodException(warning);
|
57
|
}
|
58
|
|
59
|
/* (non-Javadoc)
|
60
|
* @see eu.etaxonomy.cdm.io.common.mapping.out.IExportTransformer#getKeyByExtensionType(eu.etaxonomy.cdm.model.common.ExtensionType)
|
61
|
*/
|
62
|
@Override
|
63
|
public Object getKeyByExtensionType(ExtensionType extensionType) throws UndefinedTransformerMethodException {
|
64
|
String warning = "getKeyByExtensionType is not implemented in implementing transformer class";
|
65
|
throw new UndefinedTransformerMethodException(warning);
|
66
|
} @Override
|
67
|
public String getCacheByExtensionType(ExtensionType extensionType) throws UndefinedTransformerMethodException {
|
68
|
String warning = "getCacheByExtensionType is not implemented in implementing transformer class";
|
69
|
throw new UndefinedTransformerMethodException(warning);
|
70
|
}
|
71
|
|
72
|
@Override
|
73
|
public Object getKeyByPresenceAbsenceTerm(PresenceAbsenceTerm term) throws UndefinedTransformerMethodException {
|
74
|
String warning = "getKeyByPresenceAbsenceTerm is not implemented in implementing transformer class";
|
75
|
throw new UndefinedTransformerMethodException(warning);
|
76
|
}
|
77
|
|
78
|
@Override
|
79
|
public String getCacheByPresenceAbsenceTerm(PresenceAbsenceTerm term) throws UndefinedTransformerMethodException {
|
80
|
String warning = "getKeyByPresenceAbsenceTerm is not implemented in implementing transformer class";
|
81
|
throw new UndefinedTransformerMethodException(warning);
|
82
|
}
|
83
|
|
84
|
@Override
|
85
|
public Object getKeyByNamedArea(NamedArea area) throws UndefinedTransformerMethodException {
|
86
|
String warning = "getKeyByNamedArea is not implemented in implementing transformer class";
|
87
|
throw new UndefinedTransformerMethodException(warning);
|
88
|
}
|
89
|
|
90
|
@Override
|
91
|
public String getCacheByNamedArea(NamedArea area) throws UndefinedTransformerMethodException{
|
92
|
String warning = "getCacheByNamedArea is not implemented in implementing transformer class";
|
93
|
throw new UndefinedTransformerMethodException(warning);
|
94
|
}
|
95
|
|
96
|
@Override
|
97
|
public String getCacheByNomStatus(NomenclaturalStatusType status) throws UndefinedTransformerMethodException {
|
98
|
String warning = "getCacheByNomStatus is not implemented in implementing transformer class";
|
99
|
throw new UndefinedTransformerMethodException(warning);
|
100
|
}
|
101
|
|
102
|
|
103
|
@Override
|
104
|
public Object getKeyByNomStatus(NomenclaturalStatusType status) throws UndefinedTransformerMethodException {
|
105
|
String warning = "getKeyByNomStatus is not yet implemented in implementing transformer class";
|
106
|
throw new UndefinedTransformerMethodException(warning);
|
107
|
}
|
108
|
@Override
|
109
|
public String getQualityStatusCacheByKey(Integer qualityStatusFk) throws UndefinedTransformerMethodException {
|
110
|
String warning = "getQualityStatusCacheByKey is not yet implemented in implementing transformer class";
|
111
|
throw new UndefinedTransformerMethodException(warning);
|
112
|
}
|
113
|
@Override
|
114
|
public String getTaxonStatusCacheByKey(Integer taxonStatusId) throws UndefinedTransformerMethodException {
|
115
|
String warning = "getTaxonStatusCacheByKey is not yet implemented in implementing transformer class";
|
116
|
throw new UndefinedTransformerMethodException(warning);
|
117
|
}
|
118
|
|
119
|
|
120
|
}
|