1
|
/**
|
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
|
package eu.etaxonomy.cdm.io.berlinModel.out;
|
11
|
|
12
|
import org.apache.log4j.Logger;
|
13
|
|
14
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
15
|
import eu.etaxonomy.cdm.io.common.DbExportConfiguratorBase;
|
16
|
import eu.etaxonomy.cdm.io.common.ExportStateBase;
|
17
|
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
|
public class BerlinModelExportConfigurator extends DbExportConfiguratorBase implements IExportConfigurator{
|
26
|
@SuppressWarnings("unused")
|
27
|
private static Logger logger = Logger.getLogger(BerlinModelExportConfigurator.class);
|
28
|
|
29
|
//ID for the isHomotypic relationship in RelName, if not exist null
|
30
|
private Integer isHomotypicId = null;
|
31
|
|
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
|
BerlinModelAuthorExport.class
|
39
|
, BerlinModelAuthorTeamExport.class
|
40
|
, BerlinModelReferenceExport.class
|
41
|
, BerlinModelTaxonNameExport.class
|
42
|
, BerlinModelNameRelationExport.class
|
43
|
// , BerlinModelNameFactsImport.class
|
44
|
// , BerlinModelTypesImport.class
|
45
|
, BerlinModelTaxonExport.class
|
46
|
, BerlinModelTaxonRelationExport.class
|
47
|
, BerlinModelTaxonomicTreeExport.class
|
48
|
, BerlinModelFactExport.class
|
49
|
// , BerlinModelOccurrenceImport.class
|
50
|
};
|
51
|
|
52
|
}
|
53
|
|
54
|
/**
|
55
|
* @param berlinModelSource
|
56
|
* @param sourceReference
|
57
|
* @param destination
|
58
|
*/
|
59
|
private BerlinModelExportConfigurator(Source destination, ICdmDataSource cdmSource) {
|
60
|
super();
|
61
|
setSource(cdmSource);
|
62
|
setDestination(destination);
|
63
|
// setState((BerlinModelExportState)getNewState());
|
64
|
}
|
65
|
|
66
|
/**
|
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
|
|
80
|
/* (non-Javadoc)
|
81
|
* @see eu.etaxonomy.cdm.io.common.IExportConfigurator#getNewState()
|
82
|
*/
|
83
|
public ExportStateBase getNewState() {
|
84
|
return new BerlinModelExportState(this);
|
85
|
}
|
86
|
|
87
|
|
88
|
|
89
|
|
90
|
}
|