Project

General

Profile

Download (1.94 KB) Statistics
| Branch: | Revision:
1
/**
2
* Copyright (C) 2009 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

    
10
package eu.etaxonomy.cdm.io.eflora.centralAfrica.ericaceae;
11

    
12
import org.apache.log4j.Logger;
13
import org.springframework.stereotype.Component;
14

    
15
import eu.etaxonomy.cdm.common.URI;
16
import eu.etaxonomy.cdm.database.ICdmDataSource;
17
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
18
import eu.etaxonomy.cdm.io.eflora.EfloraImportConfigurator;
19

    
20
@Component
21
public class CentralAfricaEricaceaeImportConfigurator extends EfloraImportConfigurator  {
22

    
23
    private static final long serialVersionUID = 2277089945601876389L;
24
    @SuppressWarnings("unused")
25
	private static final Logger logger = Logger.getLogger(CentralAfricaEricaceaeImportConfigurator.class);
26

    
27
	public static CentralAfricaEricaceaeImportConfigurator NewInstance(URI uri, ICdmDataSource destination){
28
		return new CentralAfricaEricaceaeImportConfigurator(uri, destination);
29
	}
30

    
31
	private static IInputTransformer defaultTransformer = new CentralAfricaEricaceaeTransformer();
32
	private String classificationTitle = "Flore d'Afrique Centrale - Ericaceae";
33
	private String sourceReferenceTitle = "Flore d'Afrique Centrale - Ericaceae";
34

    
35
	@Override
36
    protected void makeIoClassList(){
37
		ioClassList = new Class[]{
38
			CentralAfricaEricaceaeTaxonImport.class
39
		};
40
	}
41

    
42
	private CentralAfricaEricaceaeImportConfigurator() {
43
		super();
44
	}
45

    
46
	private CentralAfricaEricaceaeImportConfigurator(URI uri, ICdmDataSource destination) {
47
		super(uri, destination, defaultTransformer);
48
		this.setClassificationTitle(classificationTitle);
49
		this.setSourceReferenceTitle(sourceReferenceTitle);
50
	}
51

    
52
	@Override
53
    public CentralAfricaEricaceaeImportState getNewState() {
54
		return new CentralAfricaEricaceaeImportState(this);
55
	}
56
}
(1-1/4)