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.descriptive.owl.out;
|
11
|
|
12
|
import java.io.File;
|
13
|
|
14
|
import org.apache.log4j.Logger;
|
15
|
|
16
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
17
|
import eu.etaxonomy.cdm.io.common.XmlExportConfiguratorBase;
|
18
|
import eu.etaxonomy.cdm.model.description.FeatureTree;
|
19
|
|
20
|
|
21
|
/**
|
22
|
* @author a.mueller
|
23
|
* @since 18.04.2011
|
24
|
*/
|
25
|
public class OwlExportConfigurator extends XmlExportConfiguratorBase<OwlExportState> {
|
26
|
|
27
|
private static final long serialVersionUID = -4360021755279592592L;
|
28
|
|
29
|
@SuppressWarnings("unused")
|
30
|
private static final Logger logger = Logger.getLogger(OwlExportConfigurator.class);
|
31
|
|
32
|
private FeatureTree featureTree;
|
33
|
|
34
|
|
35
|
private OwlExportConfigurator(ICdmDataSource source, File destinationFolder, FeatureTree featureTree) {
|
36
|
super(destinationFolder, source, null);
|
37
|
this.featureTree = featureTree;
|
38
|
}
|
39
|
|
40
|
public static OwlExportConfigurator NewInstance(ICdmDataSource source, File destinationFolder, FeatureTree featureTree) {
|
41
|
return new OwlExportConfigurator(source, destinationFolder, featureTree);
|
42
|
}
|
43
|
|
44
|
/**
|
45
|
* {@inheritDoc}
|
46
|
*/
|
47
|
@Override
|
48
|
public OwlExportState getNewState() {
|
49
|
return new OwlExportState(this);
|
50
|
}
|
51
|
|
52
|
/**
|
53
|
* {@inheritDoc}
|
54
|
*/
|
55
|
@Override
|
56
|
protected void makeIoClassList() {
|
57
|
ioClassList = new Class[] {
|
58
|
OwlExport.class
|
59
|
};
|
60
|
}
|
61
|
|
62
|
public FeatureTree getFeatureTree() {
|
63
|
return featureTree;
|
64
|
}
|
65
|
|
66
|
}
|