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
|
package eu.etaxonomy.cdm.io.eflora.floraMalesiana;
|
10
|
|
11
|
import org.apache.log4j.Logger;
|
12
|
import org.springframework.stereotype.Component;
|
13
|
|
14
|
import eu.etaxonomy.cdm.common.URI;
|
15
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
16
|
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
|
17
|
import eu.etaxonomy.cdm.io.eflora.EfloraImportConfigurator;
|
18
|
import eu.etaxonomy.cdm.io.eflora.EfloraTaxonImport;
|
19
|
|
20
|
@Component
|
21
|
public class FloraMalesianaImportConfigurator extends EfloraImportConfigurator {
|
22
|
private static final long serialVersionUID = 6245230085258251671L;
|
23
|
@SuppressWarnings("unused")
|
24
|
private static final Logger logger = Logger.getLogger(FloraMalesianaImportConfigurator.class);
|
25
|
|
26
|
public static FloraMalesianaImportConfigurator NewInstance(URI uri, ICdmDataSource destination){
|
27
|
return new FloraMalesianaImportConfigurator(uri, destination);
|
28
|
}
|
29
|
|
30
|
//TODO
|
31
|
private static IInputTransformer defaultTransformer = null;
|
32
|
private final String classificationTitle = "Flora Malesiana";
|
33
|
private final String sourceReferenceTitle = "Flora Malesiana";
|
34
|
|
35
|
@Override
|
36
|
protected void makeIoClassList(){
|
37
|
ioClassList = new Class[]{
|
38
|
EfloraTaxonImport.class
|
39
|
};
|
40
|
}
|
41
|
|
42
|
private FloraMalesianaImportConfigurator() {
|
43
|
super();
|
44
|
}
|
45
|
|
46
|
private FloraMalesianaImportConfigurator(URI uri, ICdmDataSource destination) {
|
47
|
super(uri, destination, defaultTransformer);
|
48
|
this.setClassificationTitle(classificationTitle);
|
49
|
this.setSourceReferenceTitle(sourceReferenceTitle);
|
50
|
}
|
51
|
|
52
|
@Override
|
53
|
public FloraMalesianaImportState getNewState() {
|
54
|
return new FloraMalesianaImportState(this);
|
55
|
}
|
56
|
}
|