ref #8162 move FeatureTree and FeatureNode to term package
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / descriptive / word / out / WordExportConfigurator.java
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.word.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.term.FeatureTree;
19
20
21 /**
22 *
23 * @author pplitzner
24 * @since Oct 18, 2018
25 *
26 */
27 public class WordExportConfigurator extends XmlExportConfiguratorBase<WordExportState> {
28
29 private static final long serialVersionUID = -4360021755279592592L;
30
31 @SuppressWarnings("unused")
32 private static final Logger logger = Logger.getLogger(WordExportConfigurator.class);
33
34 private FeatureTree featureTree;
35
36
37 private WordExportConfigurator(ICdmDataSource source, File destinationFolder, FeatureTree featureTree) {
38 super(destinationFolder, source, null);
39 this.featureTree = featureTree;
40 }
41
42 public static WordExportConfigurator NewInstance(ICdmDataSource source, File destinationFolder, FeatureTree featureTree) {
43 return new WordExportConfigurator(source, destinationFolder, featureTree);
44 }
45
46 @Override
47 public WordExportState getNewState() {
48 return new WordExportState(this);
49 }
50
51 @Override
52 protected void makeIoClassList() {
53 ioClassList = new Class[] {
54 WordExport.class
55 };
56 }
57
58 public FeatureTree getFeatureTree() {
59 return featureTree;
60 }
61
62 }