1
2
3
4
5
6
7
8
9
10
11 package eu.etaxonomy.cdm.io.common;
12
13 import org.apache.log4j.Logger;
14
15 import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
16
17
18
19
20
21
22
23 public abstract class IoStateBase<CONFIG extends IIoConfigurator, IO extends ICdmIO> {
24 @SuppressWarnings("unused")
25 private static final Logger logger = Logger.getLogger(IoStateBase.class);
26
27 private IO currentIO;
28
29 CONFIG config;
30
31
32
33
34 public CONFIG getConfig() {
35 return config;
36 }
37
38
39
40
41 public void setConfig(CONFIG config) {
42 this.config = config;
43 }
44
45
46
47
48
49 public void initialize(CONFIG config){
50 this.config = config;
51 }
52
53
54
55
56 public void setCurrentIO(IO currentIO) {
57 this.currentIO = currentIO;
58 }
59
60
61
62
63 public IO getCurrentIO() {
64 return currentIO;
65 }
66
67
68 }