Revision 5d17ab2a
Added by Andreas Müller over 4 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelImportConfigurator.java | ||
---|---|---|
29 | 29 |
* @author a.mueller |
30 | 30 |
* @since 20.03.2008 |
31 | 31 |
*/ |
32 |
public class BerlinModelImportConfigurator extends DbImportConfiguratorBase<BerlinModelImportState>{ |
|
32 |
public class BerlinModelImportConfigurator |
|
33 |
extends DbImportConfiguratorBase<BerlinModelImportState>{ |
|
34 |
|
|
33 | 35 |
private static final long serialVersionUID = 70300913255425256L; |
34 | 36 |
|
35 | 37 |
private static Logger logger = Logger.getLogger(BerlinModelImportConfigurator.class); |
... | ... | |
75 | 77 |
//references |
76 | 78 |
private boolean doSourceNumber = false; |
77 | 79 |
|
80 |
//nullValues |
|
81 |
private boolean ignoreNull = false; |
|
82 |
|
|
78 | 83 |
//occurrences |
79 | 84 |
private boolean isSplitTdwgCodes = true; |
80 | 85 |
|
... | ... | |
162 | 167 |
}; |
163 | 168 |
} |
164 | 169 |
|
165 |
|
|
166 |
|
|
167 |
/* (non-Javadoc) |
|
168 |
* @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState() |
|
169 |
*/ |
|
170 | 170 |
@Override |
171 | 171 |
public BerlinModelImportState getNewState() { |
172 | 172 |
return new BerlinModelImportState(this); |
173 | 173 |
} |
174 | 174 |
|
175 |
|
|
176 |
|
|
177 |
/** |
|
178 |
* @param berlinModelSource |
|
179 |
* @param sourceReference |
|
180 |
* @param destination |
|
181 |
*/ |
|
182 | 175 |
protected BerlinModelImportConfigurator(Source berlinModelSource, ICdmDataSource destination) { |
183 | 176 |
super(berlinModelSource, destination, NomenclaturalCode.ICNAFP, defaultTransformer); //default for Berlin Model |
184 | 177 |
} |
185 | 178 |
|
186 |
|
|
187 | 179 |
/** |
188 | 180 |
* Import name relationships yes/no?. |
189 |
* @return |
|
190 | 181 |
*/ |
191 | 182 |
public boolean isDoRelNames() { |
192 | 183 |
return doRelNames; |
... | ... | |
195 | 186 |
this.doRelNames = doRelNames; |
196 | 187 |
} |
197 | 188 |
|
198 |
/** |
|
199 |
* @return the mediaUrl |
|
200 |
*/ |
|
201 | 189 |
public URL getMediaUrl() { |
202 | 190 |
return mediaUrl; |
203 | 191 |
} |
204 |
|
|
205 |
/** |
|
206 |
* @param mediaUrl the mediaUrl to set |
|
207 |
*/ |
|
208 | 192 |
public void setMediaUrl(URL mediaUrl) { |
209 | 193 |
this.mediaUrl = mediaUrl; |
210 | 194 |
} |
211 | 195 |
|
212 |
/** |
|
213 |
* @return the mediaPath |
|
214 |
*/ |
|
215 | 196 |
public File getMediaPath() { |
216 | 197 |
return mediaPath; |
217 | 198 |
} |
218 |
|
|
219 |
/** |
|
220 |
* @param mediaPath the mediaPath to set |
|
221 |
*/ |
|
222 | 199 |
public void setMediaPath(File mediaPath) { |
223 | 200 |
this.mediaPath = mediaPath; |
224 | 201 |
} |
... | ... | |
251 | 228 |
this.maximumNumberOfNameFacts = maximumNumberOfNameFacts; |
252 | 229 |
} |
253 | 230 |
|
231 |
/** |
|
232 |
* If true, no errors occur if objects are not found that should exist. This may |
|
233 |
* be needed e.g. when only subsets of the data are imported. |
|
234 |
* Default value is <cod>false</code>. |
|
235 |
* @return the ignoreNull |
|
236 |
*/ |
|
237 |
public boolean isIgnoreNull() { |
|
238 |
return ignoreNull; |
|
239 |
} |
|
240 |
public void setIgnoreNull(boolean ignoreNull) { |
|
241 |
this.ignoreNull = ignoreNull; |
|
242 |
} |
|
243 |
|
|
254 | 244 |
/** |
255 | 245 |
* If true, an authorTeam with authorTeamId = 0 is not imported (casus Salvador) |
256 | 246 |
* @return the isIgnore0AuthorTeam |
Also available in: Unified diff
cleanup and move isIgnoreNull from base configurator to BMconfig only