Project

General

Profile

Download (1.51 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
import eu.etaxonomy.cdm.io.common.mapping.out.IExportTransformer;
11

    
12

    
13
/**
14
 * @author a.babadshanjan
15
 * @since 16.11.2008
16
 */
17
public interface IExportConfigurator<STATE extends ExportStateBase, TRANSFORM extends IExportTransformer>
18
            extends IIoConfigurator {
19

    
20
    public static enum CHECK{
21
        CHECK_ONLY,
22
        EXPORT_WITHOUT_CHECK,
23
        CHECK_AND_EXPORT,
24
    }
25

    
26
    public static enum DO_REFERENCES{
27
        NONE,
28
        NOMENCLATURAL,
29
        CONCEPT_REFERENCES,
30
        ALL
31
    }
32

    
33
    public static enum TARGET{
34
        FILE,
35
        EXPORT_DATA
36
    }
37

    
38
    public boolean isValid();
39

    
40

    
41
    public CHECK getCheck();
42

    
43
    public void setTarget(TARGET target);
44

    
45
    public TARGET getTarget();
46

    
47
    public Class<ICdmIO>[] getIoClassList();
48

    
49

    
50

    
51
    /**
52
     * The CDM data source for the export
53
     * Don't use when using a spring data source
54
     * @return
55
     */
56
    public ICdmDataSource getSource();
57

    
58
    public void setSource(ICdmDataSource source);
59

    
60
    /**
61
     * Factory method. Creates a new state for the export type and adds this coniguration to it.
62
     * @return
63
     */
64
    public STATE getNewState();
65

    
66

    
67
    public TRANSFORM getTransformer();
68

    
69
    public void setTransformer(TRANSFORM transformer);
70

    
71
    public ExportResultType getResultType();
72

    
73

    
74
}
(29-29/65)