Project

General

Profile

Download (3.05 KB) Statistics
| Branch: | Revision:
1 acf4e805 Andreas Müller
/**
2
* Copyright (C) 2016 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.io.greece;
10
11
import java.net.URI;
12
13
import eu.etaxonomy.cdm.database.ICdmDataSource;
14
import eu.etaxonomy.cdm.io.common.ImportStateBase;
15
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
16
import eu.etaxonomy.cdm.io.excel.common.ExcelImportConfiguratorBase;
17
import eu.etaxonomy.cdm.io.mexico.SimpleExcelTaxonImportState;
18
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
19
import eu.etaxonomy.cdm.model.reference.Reference;
20
21
/**
22
 * @author a.mueller
23 53d7c437 Andreas Müller
 * @since 14.12.2016
24 acf4e805 Andreas Müller
 */
25
public class FloraHellenicaImportConfigurator extends ExcelImportConfiguratorBase{
26
27
    private static final long serialVersionUID = 3782414424818991629L;
28
    private static IInputTransformer defaultTransformer = new FloraHellenicaTransformer();
29
    private Reference secReference;
30 aea90ab7 Andreas Müller
    private Reference secReference2;
31 acf4e805 Andreas Müller
32 702cfaf1 Andreas Müller
    private boolean isDoImages = true;
33 aea90ab7 Andreas Müller
    private boolean statusAsDistribution = false;
34 702cfaf1 Andreas Müller
35
36 58313611 unknown
37 acf4e805 Andreas Müller
    /**
38
     * @param source
39
     * @param cdmDestination
40
     * @return
41
     */
42
    public static FloraHellenicaImportConfigurator NewInstance(URI source, ICdmDataSource destination) {
43
        return new FloraHellenicaImportConfigurator(source, destination);
44
    }
45
46
47
    private FloraHellenicaImportConfigurator(URI source, ICdmDataSource destination) {
48
        super(source, destination, defaultTransformer);
49
        setNomenclaturalCode(NomenclaturalCode.ICNAFP);
50
        setSource(source);
51
        setDestination(destination);
52
     }
53
54
    @Override
55
    public ImportStateBase getNewState() {
56
        return new SimpleExcelTaxonImportState<>(this);
57
    }
58
59
    @Override
60
    protected void makeIoClassList() {
61
        ioClassList = new Class[]{
62 aea90ab7 Andreas Müller
                FloraHellenicaTermImport.class,
63 f40a1396 unknown
                FloraHellenicaTaxonImport.class,
64
                FloraHellenicaExcludedTaxonImport.class,
65
                FloraHellenicaSynonymImport.class,
66 066bfef4 Andreas Müller
                FloraHellenicaBasionymImport.class,
67 f40a1396 unknown
                FloraHellenicaCommentsImport.class,
68 702cfaf1 Andreas Müller
                FloraHellenicaImageImport.class,
69 066bfef4 Andreas Müller
                FloraHellenicaImageCaptionImport.class,
70 acf4e805 Andreas Müller
        };
71
    }
72 702cfaf1 Andreas Müller
73
74
    public boolean isDoImages() {
75
        return isDoImages;
76
    }
77
    public void setDoImages(boolean isDoImages) {
78
        this.isDoImages = isDoImages;
79
    }
80 aea90ab7 Andreas Müller
81
82
    public boolean isStatusAsDistribution() {
83
        return statusAsDistribution;
84
    }
85
    public void setStatusAsDistribution(boolean statusAsDistribution) {
86
        this.statusAsDistribution = statusAsDistribution;
87
    }
88
89
90
    public Reference getSecReference() {
91
        return secReference;
92
    }
93
    public void setSecReference(Reference secReference) {
94
        this.secReference = secReference;
95
    }
96
97
98
    public Reference getSecReference2() {
99
        return secReference2;
100
    }
101
    public void setSecReference2(Reference secReference2) {
102
        this.secReference2 = secReference2;
103
    }
104
105
106 acf4e805 Andreas Müller
}