cleanup
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / common / IoStateBase.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 package eu.etaxonomy.cdm.io.common;
10
11 import org.apache.log4j.Logger;
12
13 import eu.etaxonomy.cdm.common.IoResultBase;
14
15 /**
16 * @author a.mueller
17 * @since 11.05.2009
18 */
19 public abstract class IoStateBase<CONFIG
20 extends IIoConfigurator, IO extends ICdmIO, RESULT extends IoResultBase> {
21
22 @SuppressWarnings("unused")
23 private static final Logger logger = Logger.getLogger(IoStateBase.class);
24
25 private IO currentIO;
26
27 protected CONFIG config;
28
29 private RESULT result;
30
31 //TODO config not necessary ones it it implemented in constructor for IOs too.
32 public void initialize(CONFIG config){
33 this.config = config;
34 }
35
36 public CONFIG getConfig() {
37 return config;
38 }
39 public void setConfig(CONFIG config) {
40 this.config = config;
41 }
42
43 public void setCurrentIO(IO currentIO) {
44 this.currentIO = currentIO;
45 }
46 public IO getCurrentIO() {
47 return currentIO;
48 }
49
50 public RESULT getResult() {
51 return result;
52 }
53 public void setResult(RESULT result) {
54 this.result = result;
55 }
56
57 // public IProgressMonitor getCurrentMonitor() {
58 // return currentMonitor;
59 // }
60 // public void setCurrentMonitor(IProgressMonitor currentMonitor) {
61 // this.currentMonitor = currentMonitor;
62 // }
63 }