Remove generics from Reference in cdmlib-app #5830
[cdmlib-apps.git] / cdm-eflora / src / main / java / eu / etaxonomy / cdm / io / eflora / centralAfrica / checklist / CentralAfricaChecklistImportConfigurator.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.eflora.centralAfrica.checklist;
11
12 import java.util.UUID;
13
14 import org.apache.log4j.Logger;
15
16 import eu.etaxonomy.cdm.database.ICdmDataSource;
17 import eu.etaxonomy.cdm.io.common.DbImportConfiguratorBase;
18 import eu.etaxonomy.cdm.io.common.IImportConfigurator;
19 import eu.etaxonomy.cdm.io.common.Source;
20 import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
21 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
22
23
24 /**
25 * @author a.mueller
26 * @created 20.03.2008
27 * @version 1.0
28 */
29 public class CentralAfricaChecklistImportConfigurator extends DbImportConfiguratorBase<CentralAfricaChecklistImportState> implements IImportConfigurator{
30 @SuppressWarnings("unused")
31 private static Logger logger = Logger.getLogger(CentralAfricaChecklistImportConfigurator.class);
32
33 private UUID uuidGenevaReference = UUID.fromString("cf3fd13d-6cad-430c-ab70-7ea841b7159f");
34
35 private String genevaReferenceTitle = null;
36
37 public static CentralAfricaChecklistImportConfigurator NewInstance(Source ermsSource, ICdmDataSource destination){
38 return new CentralAfricaChecklistImportConfigurator(ermsSource, destination);
39 }
40
41 private boolean doVernaculars = true;
42 private boolean doLinks = true;
43 private boolean doNotes = true;
44 private boolean doImages = true;
45 private DO_REFERENCES doReferences = DO_REFERENCES.ALL;
46 private boolean doTaxa = true;
47
48
49 private static IInputTransformer defaultTransformer = new CentralAfricaChecklistTransformer();
50
51 protected void makeIoClassList(){
52 ioClassList = new Class[]{
53 //ErmsGeneralImportValidator.class
54 CentralAfricaChecklistReferenceImport.class ,
55 CentralAfricaChecklistTaxonImport.class,
56 CentralAfricaChecklistSynonymImport.class
57 };
58 }
59
60
61 /* (non-Javadoc)
62 * @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState()
63 */
64 public CentralAfricaChecklistImportState getNewState() {
65 return new CentralAfricaChecklistImportState(this);
66 }
67
68
69
70 private CentralAfricaChecklistImportConfigurator(Source source, ICdmDataSource destination) {
71 super(source, destination,NomenclaturalCode.ICNAFP, defaultTransformer); //default for FdAC
72 }
73
74
75 public Source getSource() {
76 return (Source)super.getSource();
77 }
78 public void setSource(Source berlinModelSource) {
79 super.setSource(berlinModelSource);
80 }
81
82 /**
83 * @param doVernaculars the doVernaculars to set
84 */
85 public void setDoVernaculars(boolean doVernaculars) {
86 this.doVernaculars = doVernaculars;
87 }
88
89 /**
90 * @return the doVernaculars
91 */
92 public boolean isDoVernaculars() {
93 return doVernaculars;
94 }
95
96
97
98 /**
99 * @param doLinks the doLinks to set
100 */
101 public void setDoLinks(boolean doLinks) {
102 this.doLinks = doLinks;
103 }
104
105
106
107 /**
108 * @return the doLinks
109 */
110 public boolean isDoLinks() {
111 return doLinks;
112 }
113
114
115
116 /**
117 * @param doNotes the doNotes to set
118 */
119 public void setDoNotes(boolean doNotes) {
120 this.doNotes = doNotes;
121 }
122
123
124
125 /**
126 * @return the doNotes
127 */
128 public boolean isDoNotes() {
129 return doNotes;
130 }
131
132
133
134 /**
135 * @param doImages the doImages to set
136 */
137 public void setDoImages(boolean doImages) {
138 this.doImages = doImages;
139 }
140
141
142
143 /**
144 * @return the doImages
145 */
146 public boolean isDoImages() {
147 return doImages;
148 }
149
150
151 public void setUuidGenevaReference(UUID uuidGenevaReference) {
152 this.uuidGenevaReference = uuidGenevaReference;
153 }
154
155
156 public UUID getUuidGenevaReference() {
157 return uuidGenevaReference;
158 }
159
160
161 public void setGenevaReferenceTitle(String genevaReferenceTitle) {
162 this.genevaReferenceTitle = genevaReferenceTitle;
163 }
164
165
166 public String getGenevaReferenceTitle() {
167 return genevaReferenceTitle;
168 }
169
170
171 public DO_REFERENCES getDoReferences() {
172 return doReferences;
173 }
174 public void setDoReferences(DO_REFERENCES doReferences) {
175 this.doReferences = doReferences;
176 }
177
178 public boolean isDoTaxa() {
179 return doTaxa;
180 }
181 public void setDoTaxa(boolean doTaxa) {
182 this.doTaxa = doTaxa;
183 }
184
185
186
187 }