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 java.net.URI;
|
13
|
|
14
|
import org.apache.log4j.Logger;
|
15
|
import org.springframework.stereotype.Component;
|
16
|
|
17
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
18
|
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
|
19
|
import eu.etaxonomy.cdm.io.eflora.EfloraImportConfigurator;
|
20
|
|
21
|
@Component
|
22
|
public class CentralAfricaEricaceaeImportConfigurator extends EfloraImportConfigurator {
|
23
|
@SuppressWarnings("unused")
|
24
|
private static final Logger logger = Logger.getLogger(CentralAfricaEricaceaeImportConfigurator.class);
|
25
|
|
26
|
public static CentralAfricaEricaceaeImportConfigurator NewInstance(URI uri, ICdmDataSource destination){
|
27
|
return new CentralAfricaEricaceaeImportConfigurator(uri, destination);
|
28
|
}
|
29
|
|
30
|
private static IInputTransformer defaultTransformer = new CentralAfricaEricaceaeTransformer();
|
31
|
private String classificationTitle = "Flore d'Afrique Centrale - Ericaceae";
|
32
|
private String sourceReferenceTitle = "Flore d'Afrique Centrale - Ericaceae";
|
33
|
|
34
|
|
35
|
/* (non-Javadoc)
|
36
|
* @see eu.etaxonomy.cdm.io.common.ImportConfiguratorBase#makeIoClassList()
|
37
|
*/
|
38
|
protected void makeIoClassList(){
|
39
|
ioClassList = new Class[]{
|
40
|
CentralAfricaEricaceaeTaxonImport.class
|
41
|
};
|
42
|
};
|
43
|
|
44
|
|
45
|
private CentralAfricaEricaceaeImportConfigurator() {
|
46
|
super();
|
47
|
}
|
48
|
|
49
|
/**
|
50
|
* @param url
|
51
|
* @param destination
|
52
|
*/
|
53
|
private CentralAfricaEricaceaeImportConfigurator(URI uri, ICdmDataSource destination) {
|
54
|
super(uri, destination, defaultTransformer);
|
55
|
this.setClassificationTitle(classificationTitle);
|
56
|
this.setSourceReferenceTitle(sourceReferenceTitle);
|
57
|
}
|
58
|
|
59
|
|
60
|
|
61
|
/* (non-Javadoc)
|
62
|
* @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState()
|
63
|
*/
|
64
|
public CentralAfricaEricaceaeImportState getNewState() {
|
65
|
return new CentralAfricaEricaceaeImportState(this);
|
66
|
}
|
67
|
|
68
|
|
69
|
|
70
|
}
|