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