Revision a34899e5
Added by Andreas Müller almost 9 years ago
cdm-eflora/src/main/java/eu/etaxonomy/cdm/io/eflora/floraMalesiana/FloraMalesianaImportConfigurator.java | ||
---|---|---|
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.floraMalesiana; |
|
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 |
import eu.etaxonomy.cdm.io.eflora.EfloraTaxonImport; |
|
21 |
|
|
22 |
@Component |
|
23 |
public class FloraMalesianaImportConfigurator extends EfloraImportConfigurator { |
|
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 String classificationTitle = "Flora Malesiana"; |
|
34 |
private String sourceReferenceTitle = "Flora Malesiana"; |
|
35 |
|
|
36 |
|
|
37 |
/* (non-Javadoc) |
|
38 |
* @see eu.etaxonomy.cdm.io.common.ImportConfiguratorBase#makeIoClassList() |
|
39 |
*/ |
|
40 |
protected void makeIoClassList(){ |
|
41 |
ioClassList = new Class[]{ |
|
42 |
EfloraTaxonImport.class |
|
43 |
}; |
|
44 |
}; |
|
45 |
|
|
46 |
|
|
47 |
private FloraMalesianaImportConfigurator() { |
|
48 |
super(); |
|
49 |
} |
|
50 |
|
|
51 |
/** |
|
52 |
* @param url |
|
53 |
* @param destination |
|
54 |
*/ |
|
55 |
private FloraMalesianaImportConfigurator(URI uri, ICdmDataSource destination) { |
|
56 |
super(uri, destination, defaultTransformer); |
|
57 |
this.setClassificationTitle(classificationTitle); |
|
58 |
this.setSourceReferenceTitle(sourceReferenceTitle); |
|
59 |
} |
|
60 |
|
|
61 |
|
|
62 |
|
|
63 |
/* (non-Javadoc) |
|
64 |
* @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState() |
|
65 |
*/ |
|
66 |
public FloraMalesianaImportState getNewState() { |
|
67 |
return new FloraMalesianaImportState(this); |
|
68 |
} |
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
} |
|
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.floraMalesiana; |
|
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 |
import eu.etaxonomy.cdm.io.eflora.EfloraTaxonImport; |
|
21 |
|
|
22 |
@Component |
|
23 |
public class FloraMalesianaImportConfigurator extends EfloraImportConfigurator { |
|
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 |
|
|
44 |
private FloraMalesianaImportConfigurator() { |
|
45 |
super(); |
|
46 |
} |
|
47 |
|
|
48 |
/** |
|
49 |
* @param url |
|
50 |
* @param destination |
|
51 |
*/ |
|
52 |
private FloraMalesianaImportConfigurator(URI uri, ICdmDataSource destination) { |
|
53 |
super(uri, destination, defaultTransformer); |
|
54 |
this.setClassificationTitle(classificationTitle); |
|
55 |
this.setSourceReferenceTitle(sourceReferenceTitle); |
|
56 |
} |
|
57 |
|
|
58 |
@Override |
|
59 |
public FloraMalesianaImportState getNewState() { |
|
60 |
return new FloraMalesianaImportState(this); |
|
61 |
} |
|
62 |
|
|
63 |
} |
Also available in: Unified diff
Cleanup Flora Malesiana configurator