Project

General

Profile

Download (1.52 KB) Statistics
| Branch: | Tag: | Revision:
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

    
16
/**
17
 * @author a.mueller
18
 * @created 11.05.2009
19
 * @version 1.0
20
 */
21
public abstract class IoStateBase<CONFIG extends IIoConfigurator, IO extends ICdmIO> {
22
	@SuppressWarnings("unused")
23
	private static final Logger logger = Logger.getLogger(IoStateBase.class);
24
	
25
	private IO currentIO;
26

    
27
	private boolean success = true;
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
	public void setSuccess(boolean success) {
68
		this.success = success;
69
	}
70
	
71
	public void setUnsuccessfull(){
72
		this.success = false;
73
	}
74

    
75
	public boolean isSuccess() {
76
		return success;
77
	}
78
	
79
	
80
}
(36-36/48)