Project

General

Profile

Download (1.65 KB) Statistics
| Branch: | Revision:
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.redlist.bfnXml.out;
11

    
12
import java.io.File;
13

    
14
import org.apache.log4j.Logger;
15
import org.jdom2.Document;
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
 *
22
 * @author pplitzner
23
 * @date May 3, 2016
24
 *
25
 */
26
public class BfnXmlExportConfigurator extends XmlExportConfiguratorBase<BfnXmlExportState>{
27

    
28
    private static final long serialVersionUID = -74469857806841119L;
29

    
30
    @SuppressWarnings("unused")
31
	private static Logger logger = Logger.getLogger(BfnXmlExportConfigurator.class);
32

    
33
    private final Document document;
34

    
35
	public static BfnXmlExportConfigurator NewInstance(File destination, ICdmDataSource cdmSource, IExportTransformer transformer, Document document){
36
			return new BfnXmlExportConfigurator(destination, cdmSource, transformer, document);
37
	}
38

    
39
	private BfnXmlExportConfigurator(File destination, ICdmDataSource cdmSource, IExportTransformer transformer, Document document) {
40
	    super(destination, cdmSource, transformer);
41
	    this.document = document;
42
	}
43

    
44
	@Override
45
    protected void makeIoClassList(){
46
		ioClassList = new Class[]{
47
				BfnXmlTaxonNameExport.class
48
		};
49

    
50
	}
51

    
52
	@Override
53
    public BfnXmlExportState getNewState() {
54
		return new BfnXmlExportState(this);
55
	}
56

    
57
    public Document getDocument() {
58
        return document;
59
    }
60

    
61
}
(2-2/5)