2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.io
.common
;
11 import org
.apache
.log4j
.Logger
;
13 import eu
.etaxonomy
.cdm
.common
.IoResultBase
;
19 public abstract class IoStateBase
<CONFIG
20 extends IIoConfigurator
, IO
extends ICdmIO
, RESULT
extends IoResultBase
> {
22 @SuppressWarnings("unused")
23 private static final Logger logger
= Logger
.getLogger(IoStateBase
.class);
27 protected CONFIG config
;
29 private RESULT result
;
31 //TODO config not necessary ones it it implemented in constructor for IOs too.
32 public void initialize(CONFIG config
){
36 public CONFIG
getConfig() {
39 public void setConfig(CONFIG config
) {
43 public void setCurrentIO(IO currentIO
) {
44 this.currentIO
= currentIO
;
46 public IO
getCurrentIO() {
50 public RESULT
getResult() {
53 public void setResult(RESULT result
) {
57 // public IProgressMonitor getCurrentMonitor() {
58 // return currentMonitor;
60 // public void setCurrentMonitor(IProgressMonitor currentMonitor) {
61 // this.currentMonitor = currentMonitor;