2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.io
.tcsxml
.out
;
13 import org
.apache
.logging
.log4j
.LogManager
;
14 import org
.apache
.logging
.log4j
.Logger
;
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
;
24 public class TcsXmlExportConfigurator
extends XmlExportConfiguratorBase
<TcsXmlExportState
> {
25 private static final long serialVersionUID
= 2943494702785912481L;
27 @SuppressWarnings("unused")
28 private static final Logger logger
= LogManager
.getLogger();
30 private TcsXmlExportState state
;
32 private boolean doAuthors
;
33 private boolean doTaxonNames
;
36 private static IExportTransformer defaultTransformer
= null;
38 public static TcsXmlExportConfigurator
NewInstance(File destination
, ICdmDataSource source
){
39 return new TcsXmlExportConfigurator(destination
, source
);
42 @SuppressWarnings("unchecked")
44 protected void makeIoClassList(){
45 ioClassList
= new Class
[]{
46 // BerlinModelAuthorExport.class
47 // , BerlinModelAuthorTeamExport.class
48 // , BerlinModelReferenceExport.class
49 // , BerlinModelTaxonNameExport.class
53 private TcsXmlExportConfigurator(File destination
, ICdmDataSource cdmSource
) {
54 super(destination
, cdmSource
, defaultTransformer
);
57 public boolean isDoAuthors(){
61 public void setDoAuthors(boolean doAuthors
){
62 this.doAuthors
= doAuthors
;
65 public boolean isDoTaxonNames() {
68 public void setDoTaxonNames(boolean doTaxonNames
) {
69 this.doTaxonNames
= doTaxonNames
;
72 public TcsXmlExportState
getState() {
75 public void setState(TcsXmlExportState state
) {
80 public TcsXmlExportState
getNewState() {
81 return new TcsXmlExportState(this);