Project

General

Profile

Download (1.52 KB) Statistics
| Branch: | Tag: | Revision:
1 3e04d6ad Andreas Müller
// $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 d144e320 Andreas Müller
package eu.etaxonomy.cdm.io.common;
12 3e04d6ad Andreas Müller
13
import org.apache.log4j.Logger;
14
15
16
/**
17
 * @author a.mueller
18
 * @created 11.05.2009
19
 * @version 1.0
20
 */
21 9cc4226b Katja Luther
public abstract class IoStateBase<CONFIG extends IIoConfigurator, IO extends ICdmIO> {
22 3e04d6ad Andreas Müller
	@SuppressWarnings("unused")
23 612e57d5 Andreas Müller
	private static final Logger logger = Logger.getLogger(IoStateBase.class);
24 3e04d6ad Andreas Müller
	
25 9cc4226b Katja Luther
	private IO currentIO;
26
27 51171c9d Andreas Müller
	private boolean success;
28
29 3e04d6ad Andreas Müller
	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 612e57d5 Andreas Müller
	
45 6b2cc8fd Andreas Müller
	/**
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 9cc4226b Katja Luther
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 51171c9d Andreas Müller
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 9cc4226b Katja Luther
	
79 612e57d5 Andreas Müller
	
80 3e04d6ad Andreas Müller
}