View Javadoc

1   // $Id$
2   /**
3   * Copyright (C) 2007 EDIT
4   * European Distributed Institute of Taxonomy 
5   * http://www.e-taxonomy.eu
6   * 
7   * The contents of this file are subject to the Mozilla Public License Version 1.1
8   * See LICENSE.TXT at the top of this package for the full license terms.
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   * @author a.mueller
20   * @created 11.05.2009
21   * @version 1.0
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  	 * @return the config
33  	 */
34  	public CONFIG getConfig() {
35  		return config;
36  	}
37  
38  	/**
39  	 * @param config the config to set
40  	 */
41  	public void setConfig(CONFIG config) {
42  		this.config = config;
43  	}
44  	
45  	/**
46  	 * @param config
47  	 */
48  	//TODO config not necessary ones it it implemented in constructor for Imports too.
49  	public void initialize(CONFIG config){
50  		this.config = config;
51  	}
52  
53  	/**
54  	 * @param currentImport the currentImport to set
55  	 */
56  	public void setCurrentIO(IO currentIO) {
57  		this.currentIO = currentIO;
58  	}
59  
60  	/**
61  	 * @return the currentImport
62  	 */
63  	public IO getCurrentIO() {
64  		return currentIO;
65  	}
66  	
67  	
68  }