Project

General

Profile

Download (2.1 KB) Statistics
| Branch: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2015 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
package eu.etaxonomy.cdm.io.edaphobase;
11

    
12
import org.apache.log4j.Logger;
13

    
14
import eu.etaxonomy.cdm.database.ICdmDataSource;
15
import eu.etaxonomy.cdm.io.common.DbImportConfiguratorBase;
16
import eu.etaxonomy.cdm.io.common.IImportConfigurator;
17
import eu.etaxonomy.cdm.io.common.Source;
18
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
19
import eu.etaxonomy.cdm.model.reference.Reference;
20

    
21
/**
22
 * @author a.mueller
23
 * @date 18.12.2015
24
 *
25
 */
26
public class EdaphobaseImportConfigurator
27
        extends DbImportConfiguratorBase<EdaphobaseImportState>
28
        implements IImportConfigurator
29
{
30
    private static final long serialVersionUID = 5397992611211404553L;
31
    @SuppressWarnings("unused")
32
    private static final Logger logger = Logger.getLogger(EdaphobaseImportConfigurator.class);
33

    
34
    private boolean doTaxa = true;
35
    public boolean isDoTaxa() {return doTaxa;}
36
    public void setDoTaxa(boolean doTaxa) {this.doTaxa = doTaxa;}
37

    
38

    
39
    /**
40
     * @param source
41
     * @param cdmDestination
42
     * @return
43
     */
44
    public static EdaphobaseImportConfigurator NewInstance(Source source, ICdmDataSource cdmDestination) {
45
        return new EdaphobaseImportConfigurator(source, cdmDestination, new EdaphobaseImportTransformer());
46
    }
47

    
48
    /**
49
     * @param transformer
50
     */
51
    public EdaphobaseImportConfigurator(Source source, ICdmDataSource destination, EdaphobaseImportTransformer transformer) {
52
        super(source, destination, NomenclaturalCode.ICZN, transformer);
53
    }
54

    
55
    @Override
56
    public EdaphobaseImportState getNewState() {
57
        return new EdaphobaseImportState(this);
58
    }
59

    
60
    @Override
61
    protected void makeIoClassList() {
62
        ioClassList = new Class[]{
63
                EdaphobaseTaxonImport.class,
64
        };
65
    }
66

    
67
    @Override
68
    public Reference getSourceReference() {
69
        // TODO Auto-generated method stub
70
        return null;
71
    }
72

    
73
}
(2-2/5)