Project

General

Profile

« Previous | Next » 

Revision 3443c007

Added by Andreas Müller about 7 years ago

ref #6754 ref #6755 improve filtering and progress monitoring for DwCA export

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/IoStateBase.java
12 12
import org.apache.log4j.Logger;
13 13

  
14 14
import eu.etaxonomy.cdm.common.IoResultBase;
15
import eu.etaxonomy.cdm.common.monitor.IProgressMonitor;
15 16

  
16 17

  
17 18
/**
......
29 30

  
30 31
	private RESULT result;
31 32

  
33
	private IProgressMonitor currentMonitor;
32 34

  
35
	//TODO config not necessary ones it it implemented in constructor for IOs too.
36
	public void initialize(CONFIG config){
37
	    this.config = config;
38
	}
33 39

  
34
	/**
35
	 * @return the config
36
	 */
37 40
	public CONFIG getConfig() {
38 41
		return config;
39 42
	}
40

  
41
	/**
42
	 * @param config the config to set
43
	 */
44 43
	public void setConfig(CONFIG config) {
45 44
		this.config = config;
46 45
	}
47 46

  
48
	/**
49
	 * @param config
50
	 */
51
	//TODO config not necessary ones it it implemented in constructor for Imports too.
52
	public void initialize(CONFIG config){
53
		this.config = config;
54
	}
55

  
56
	/**
57
	 * @param currentImport the currentImport to set
58
	 */
59 47
	public void setCurrentIO(IO currentIO) {
60 48
		this.currentIO = currentIO;
61 49
	}
62

  
63
	/**
64
	 * @return the currentImport
65
	 */
66 50
	public IO getCurrentIO() {
67 51
		return currentIO;
68 52
	}
69 53

  
70 54

  
71
    /**
72
     * @return the result
73
     */
74 55
    public RESULT getResult() {
75 56
        return result;
76 57
    }
77

  
78
    /**
79
     * @param result the result to set
80
     */
81 58
    public void setResult(RESULT result) {
82 59
        this.result = result;
83 60
    }
84 61

  
85 62

  
63
    public IProgressMonitor getCurrentMonitor() {
64
        return currentMonitor;
65
    }
66
    public void setCurrentMonitor(IProgressMonitor currentMonitor) {
67
        this.currentMonitor = currentMonitor;
68
    }
69

  
70

  
86 71

  
87 72
}

Also available in: Unified diff