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.tcsxml.out;
|
11
|
|
12
|
import java.io.File;
|
13
|
|
14
|
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
|
15
|
|
16
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
17
|
import eu.etaxonomy.cdm.io.common.XmlExportConfiguratorBase;
|
18
|
import eu.etaxonomy.cdm.io.common.mapping.out.IExportTransformer;
|
19
|
|
20
|
/**
|
21
|
* @author a.mueller
|
22
|
* @since 20.03.2008
|
23
|
*/
|
24
|
public class TcsXmlExportConfigurator extends XmlExportConfiguratorBase<TcsXmlExportState> {
|
25
|
private static final long serialVersionUID = 2943494702785912481L;
|
26
|
|
27
|
@SuppressWarnings("unused")
|
28
|
private static Logger logger = LogManager.getLogger(TcsXmlExportConfigurator.class);
|
29
|
|
30
|
|
31
|
private TcsXmlExportState state;
|
32
|
|
33
|
|
34
|
private boolean doAuthors;
|
35
|
private boolean doTaxonNames;
|
36
|
|
37
|
//TODO
|
38
|
private static IExportTransformer defaultTransformer = null;
|
39
|
|
40
|
|
41
|
|
42
|
public static TcsXmlExportConfigurator NewInstance(File destination, ICdmDataSource source){
|
43
|
return new TcsXmlExportConfigurator(destination, source);
|
44
|
}
|
45
|
|
46
|
@Override
|
47
|
protected void makeIoClassList(){
|
48
|
ioClassList = new Class[]{
|
49
|
// BerlinModelAuthorExport.class
|
50
|
// , BerlinModelAuthorTeamExport.class
|
51
|
// , BerlinModelReferenceExport.class
|
52
|
// , BerlinModelTaxonNameExport.class
|
53
|
};
|
54
|
|
55
|
}
|
56
|
|
57
|
/**
|
58
|
* @param berlinModelSource
|
59
|
* @param sourceReference
|
60
|
* @param destination
|
61
|
*/
|
62
|
private TcsXmlExportConfigurator(File destination, ICdmDataSource cdmSource) {
|
63
|
super(destination, cdmSource, defaultTransformer);
|
64
|
}
|
65
|
|
66
|
|
67
|
public boolean isDoAuthors(){
|
68
|
return doAuthors;
|
69
|
}
|
70
|
|
71
|
public void setDoAuthors(boolean doAuthors){
|
72
|
this.doAuthors = doAuthors;
|
73
|
}
|
74
|
|
75
|
/**
|
76
|
* @return the doTaxonNames
|
77
|
*/
|
78
|
public boolean isDoTaxonNames() {
|
79
|
return doTaxonNames;
|
80
|
}
|
81
|
|
82
|
/**
|
83
|
* @param doTaxonNames the doTaxonNames to set
|
84
|
*/
|
85
|
public void setDoTaxonNames(boolean doTaxonNames) {
|
86
|
this.doTaxonNames = doTaxonNames;
|
87
|
}
|
88
|
|
89
|
/**
|
90
|
* @return the state
|
91
|
*/
|
92
|
public TcsXmlExportState getState() {
|
93
|
return state;
|
94
|
}
|
95
|
|
96
|
/**
|
97
|
* @param state the state to set
|
98
|
*/
|
99
|
public void setState(TcsXmlExportState state) {
|
100
|
this.state = state;
|
101
|
}
|
102
|
|
103
|
@Override
|
104
|
public TcsXmlExportState getNewState() {
|
105
|
return new TcsXmlExportState(this);
|
106
|
}
|
107
|
|
108
|
|
109
|
|
110
|
|
111
|
}
|