1
|
/**
|
2
|
* Copyright (C) 2017 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
|
package eu.etaxonomy.cdm.io.common;
|
10
|
|
11
|
/**
|
12
|
* @author a.mueller
|
13
|
* @since 14.03.2017
|
14
|
*/
|
15
|
public abstract class SimpleImport<CONFIG extends ImportConfiguratorBase, SOURCE extends Object>
|
16
|
extends CdmImportBase<CONFIG, EmptyImportState<CONFIG, SimpleImport>>{
|
17
|
|
18
|
private static final long serialVersionUID = 8928228863002861242L;
|
19
|
|
20
|
@Override
|
21
|
protected void doInvoke(EmptyImportState<CONFIG, SimpleImport> state) {
|
22
|
this.doInvoke(state.getConfig());
|
23
|
return;
|
24
|
}
|
25
|
|
26
|
protected abstract void doInvoke(CONFIG config);
|
27
|
|
28
|
@Override
|
29
|
protected boolean doCheck(EmptyImportState state) {
|
30
|
return true;
|
31
|
}
|
32
|
|
33
|
@Override
|
34
|
protected boolean isIgnore(EmptyImportState state) {
|
35
|
return false;
|
36
|
}
|
37
|
}
|