cleanup
[cdmlib-apps.git] / app-import / src / main / java / eu / etaxonomy / cdm / io / berlinModel / out / BerlinModelExportConfigurator.java
index 0634ba2d127d9299fec3030f0a955e8171a90663..0b7f95eb1c1f917b4d993d392bbfb199c47c28d7 100644 (file)
@@ -6,10 +6,10 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1\r
 * See LICENSE.TXT at the top of this package for the full license terms.\r
 */\r
-\r
 package eu.etaxonomy.cdm.io.berlinModel.out;\r
 \r
-import org.apache.log4j.Logger;\r
+import org.apache.logging.log4j.LogManager;\r
+import org.apache.logging.log4j.Logger;\r
 \r
 import eu.etaxonomy.cdm.database.ICdmDataSource;\r
 import eu.etaxonomy.cdm.io.common.DbExportConfiguratorBase;\r
@@ -28,11 +28,13 @@ public class BerlinModelExportConfigurator
     private static final long serialVersionUID = -2346209092417359348L;\r
 \r
     @SuppressWarnings("unused")\r
-       private static Logger logger = Logger.getLogger(BerlinModelExportConfigurator.class);\r
+    private static final Logger logger = LogManager.getLogger();\r
 \r
 //     TODO\r
        private static IExportTransformer defaultTransformer = null;\r
 \r
+       //im-/export uses Classification for is_taxonomically_included_in relationships\r
+    private boolean useClassification = true;\r
 \r
        //ID for the isHomotypic relationship in RelName, if not exist null\r
        private Integer isHomotypicId = null;\r
@@ -72,14 +74,8 @@ public class BerlinModelExportConfigurator
                                , BerlinModelFactExport.class\r
 //                             , BerlinModelOccurrenceImport.class\r
                };\r
-\r
        }\r
 \r
-       /**\r
-        * @param berlinModelSource\r
-        * @param sourceReference\r
-        * @param destination\r
-        */\r
        private BerlinModelExportConfigurator(Source destination, ICdmDataSource cdmSource) {\r
           super(defaultTransformer);\r
           setSource(cdmSource);\r
@@ -101,15 +97,11 @@ public class BerlinModelExportConfigurator
                this.isHomotypicId = isHomotypicId;\r
        }\r
 \r
-       /* (non-Javadoc)\r
-        * @see eu.etaxonomy.cdm.io.common.IExportConfigurator#getNewState()\r
-        */\r
        @Override\r
     public BerlinModelExportState getNewState() {\r
                return new BerlinModelExportState(this);\r
        }\r
 \r
-\r
        /**\r
         * Import name relationships yes/no?.\r
         * @return\r
@@ -177,8 +169,10 @@ public class BerlinModelExportConfigurator
                this.doRelTaxa = doRelTaxa;\r
        }\r
 \r
-\r
-\r
-\r
-\r
-}\r
+    public boolean isUseClassification() {\r
+        return useClassification;\r
+    }\r
+    public void setUseClassification(boolean useClassification) {\r
+        this.useClassification = useClassification;\r
+    }\r
+}
\ No newline at end of file