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
|
*/
|
16
|
public abstract class SimpleImport<CONFIG extends ImportConfiguratorBase, SOURCE extends Object>
|
17
|
extends CdmImportBase<CONFIG, EmptyImportState<CONFIG, SimpleImport>>{
|
18
|
|
19
|
private static final long serialVersionUID = 8928228863002861242L;
|
20
|
|
21
|
/**
|
22
|
* {@inheritDoc}
|
23
|
*/
|
24
|
@Override
|
25
|
protected void doInvoke(EmptyImportState<CONFIG, SimpleImport> state) {
|
26
|
this.doInvoke(state.getConfig());
|
27
|
return;
|
28
|
}
|
29
|
|
30
|
protected abstract void doInvoke(CONFIG config);
|
31
|
|
32
|
/**
|
33
|
* {@inheritDoc}
|
34
|
*/
|
35
|
@Override
|
36
|
protected boolean doCheck(EmptyImportState state) {
|
37
|
return false;
|
38
|
}
|
39
|
|
40
|
/**
|
41
|
* {@inheritDoc}
|
42
|
*/
|
43
|
@Override
|
44
|
protected boolean isIgnore(EmptyImportState state) {
|
45
|
return false;
|
46
|
}
|
47
|
|
48
|
}
|