Project

General

Profile

Download (1.02 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2008 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
*/
6

    
7
package eu.etaxonomy.cdm.io.common;
8

    
9
import eu.etaxonomy.cdm.database.ICdmDataSource;
10

    
11

    
12
/**
13
 * @author a.babadshanjan
14
 * @created 16.11.2008
15
 * @version 1.0
16
 */
17
public interface IExportConfigurator<STATE extends ExportStateBase> extends IIoConfigurator {
18

    
19
	public static enum CHECK{
20
		CHECK_ONLY,
21
		EXPORT_WITHOUT_CHECK,
22
		CHECK_AND_EXPORT,
23
	}
24
	
25
	public static enum DO_REFERENCES{
26
		NONE,
27
		NOMENCLATURAL,
28
		CONCEPT_REFERENCES,
29
		ALL
30
	}
31

    
32
	public boolean isValid();
33

    
34

    
35
	public CHECK getCheck();
36
	
37
	public Class<ICdmIO>[] getIoClassList();
38

    
39
	
40
	/**
41
	 * The CDM data source for the export 
42
	 * Don't use when using a spring data source
43
	 * @return
44
	 */
45
	public ICdmDataSource getSource();
46

    
47
	public void setSource(ICdmDataSource source);
48
	
49
	/**
50
	 * Factory method. Creates a new state for the export type and adds this coniguration to it.
51
	 * @return 
52
	 */
53
	public STATE getNewState();
54
	
55
	
56
}
(23-23/48)