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