1 |
6c383b9f
|
Andreas Müller
|
/**
|
2 |
|
|
* Copyright (C) 2007 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 |
3e04d6ad
|
Andreas Müller
|
package eu.etaxonomy.cdm.io.berlinModel.out;
|
11 |
6c383b9f
|
Andreas Müller
|
|
12 |
|
|
import org.apache.log4j.Logger;
|
13 |
|
|
|
14 |
|
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
15 |
d27aa46c
|
Andreas Müller
|
import eu.etaxonomy.cdm.io.common.DbExportConfiguratorBase;
|
16 |
6b2cc8fd
|
Andreas Müller
|
import eu.etaxonomy.cdm.io.common.ExportStateBase;
|
17 |
6c383b9f
|
Andreas Müller
|
import eu.etaxonomy.cdm.io.common.IExportConfigurator;
|
18 |
|
|
import eu.etaxonomy.cdm.io.common.Source;
|
19 |
|
|
|
20 |
|
|
/**
|
21 |
|
|
* @author a.mueller
|
22 |
|
|
* @created 20.03.2008
|
23 |
|
|
* @version 1.0
|
24 |
|
|
*/
|
25 |
d27aa46c
|
Andreas Müller
|
public class BerlinModelExportConfigurator extends DbExportConfiguratorBase implements IExportConfigurator{
|
26 |
6c383b9f
|
Andreas Müller
|
@SuppressWarnings("unused")
|
27 |
|
|
private static Logger logger = Logger.getLogger(BerlinModelExportConfigurator.class);
|
28 |
|
|
|
29 |
a1320b67
|
Andreas Müller
|
//ID for the isHomotypic relationship in RelName, if not exist null
|
30 |
|
|
private Integer isHomotypicId = null;
|
31 |
6c383b9f
|
Andreas Müller
|
|
32 |
|
|
public static BerlinModelExportConfigurator NewInstance(Source berlinModelDestination, ICdmDataSource source){
|
33 |
|
|
return new BerlinModelExportConfigurator(berlinModelDestination, source);
|
34 |
|
|
}
|
35 |
|
|
|
36 |
|
|
protected void makeIoClassList(){
|
37 |
|
|
ioClassList = new Class[]{
|
38 |
d17f8af9
|
Andreas Müller
|
BerlinModelAuthorExport.class
|
39 |
|
|
, BerlinModelAuthorTeamExport.class
|
40 |
3e04d6ad
|
Andreas Müller
|
, BerlinModelReferenceExport.class
|
41 |
|
|
, BerlinModelTaxonNameExport.class
|
42 |
e9b659ca
|
Andreas Müller
|
, BerlinModelNameRelationExport.class
|
43 |
6c383b9f
|
Andreas Müller
|
// , BerlinModelNameFactsImport.class
|
44 |
|
|
// , BerlinModelTypesImport.class
|
45 |
3e04d6ad
|
Andreas Müller
|
, BerlinModelTaxonExport.class
|
46 |
|
|
, BerlinModelTaxonRelationExport.class
|
47 |
45dc463f
|
Andreas Müller
|
, BerlinModelTaxonomicTreeExport.class
|
48 |
3e04d6ad
|
Andreas Müller
|
, BerlinModelFactExport.class
|
49 |
6c383b9f
|
Andreas Müller
|
// , BerlinModelOccurrenceImport.class
|
50 |
|
|
};
|
51 |
|
|
|
52 |
|
|
}
|
53 |
|
|
|
54 |
|
|
/**
|
55 |
|
|
* @param berlinModelSource
|
56 |
|
|
* @param sourceReference
|
57 |
|
|
* @param destination
|
58 |
|
|
*/
|
59 |
d27aa46c
|
Andreas Müller
|
private BerlinModelExportConfigurator(Source destination, ICdmDataSource cdmSource) {
|
60 |
6c383b9f
|
Andreas Müller
|
super();
|
61 |
|
|
setSource(cdmSource);
|
62 |
d27aa46c
|
Andreas Müller
|
setDestination(destination);
|
63 |
6b2cc8fd
|
Andreas Müller
|
// setState((BerlinModelExportState)getNewState());
|
64 |
6c383b9f
|
Andreas Müller
|
}
|
65 |
|
|
|
66 |
a1320b67
|
Andreas Müller
|
/**
|
67 |
|
|
* @return the isHomotypicId
|
68 |
|
|
*/
|
69 |
|
|
public Integer getIsHomotypicId() {
|
70 |
|
|
return isHomotypicId;
|
71 |
|
|
}
|
72 |
|
|
|
73 |
|
|
/**
|
74 |
|
|
* @param isHomotypicId the isHomotypicId to set
|
75 |
|
|
*/
|
76 |
|
|
public void setIsHomotypicId(Integer isHomotypicId) {
|
77 |
|
|
this.isHomotypicId = isHomotypicId;
|
78 |
|
|
}
|
79 |
6b2cc8fd
|
Andreas Müller
|
|
80 |
|
|
/* (non-Javadoc)
|
81 |
|
|
* @see eu.etaxonomy.cdm.io.common.IExportConfigurator#getNewState()
|
82 |
|
|
*/
|
83 |
|
|
public ExportStateBase getNewState() {
|
84 |
|
|
return new BerlinModelExportState(this);
|
85 |
|
|
}
|
86 |
a1320b67
|
Andreas Müller
|
|
87 |
|
|
|
88 |
3e04d6ad
|
Andreas Müller
|
|
89 |
6c383b9f
|
Andreas Müller
|
|
90 |
|
|
}
|