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;
|
11
|
|
12
|
import org.apache.log4j.Logger;
|
13
|
|
14
|
|
15
|
/**
|
16
|
* @author a.mueller
|
17
|
* @created 11.05.2009
|
18
|
*/
|
19
|
public abstract class IoStateBase<CONFIG extends IIoConfigurator, IO extends ICdmIO, RESULT extends IoResultBase> {
|
20
|
|
21
|
@SuppressWarnings("unused")
|
22
|
private static final Logger logger = Logger.getLogger(IoStateBase.class);
|
23
|
|
24
|
private IO currentIO;
|
25
|
|
26
|
protected CONFIG config;
|
27
|
|
28
|
private RESULT result;
|
29
|
|
30
|
|
31
|
|
32
|
/**
|
33
|
* @return the config
|
34
|
*/
|
35
|
public CONFIG getConfig() {
|
36
|
return config;
|
37
|
}
|
38
|
|
39
|
/**
|
40
|
* @param config the config to set
|
41
|
*/
|
42
|
public void setConfig(CONFIG config) {
|
43
|
this.config = config;
|
44
|
}
|
45
|
|
46
|
/**
|
47
|
* @param config
|
48
|
*/
|
49
|
//TODO config not necessary ones it it implemented in constructor for Imports too.
|
50
|
public void initialize(CONFIG config){
|
51
|
this.config = config;
|
52
|
}
|
53
|
|
54
|
/**
|
55
|
* @param currentImport the currentImport to set
|
56
|
*/
|
57
|
public void setCurrentIO(IO currentIO) {
|
58
|
this.currentIO = currentIO;
|
59
|
}
|
60
|
|
61
|
/**
|
62
|
* @return the currentImport
|
63
|
*/
|
64
|
public IO getCurrentIO() {
|
65
|
return currentIO;
|
66
|
}
|
67
|
|
68
|
|
69
|
/**
|
70
|
* @return the result
|
71
|
*/
|
72
|
public RESULT getResult() {
|
73
|
return result;
|
74
|
}
|
75
|
|
76
|
/**
|
77
|
* @param result the result to set
|
78
|
*/
|
79
|
public void setResult(RESULT result) {
|
80
|
this.result = result;
|
81
|
}
|
82
|
|
83
|
|
84
|
|
85
|
}
|