1
|
/**
|
2
|
* Copyright (C) 2016 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.specimen.gbif.in;
|
10
|
|
11
|
import eu.etaxonomy.cdm.ext.occurrence.OccurenceQuery;
|
12
|
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
|
13
|
import eu.etaxonomy.cdm.io.specimen.SpecimenImportConfiguratorBase;
|
14
|
import eu.etaxonomy.cdm.io.specimen.SpecimenImportStateBase;
|
15
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
16
|
|
17
|
/**
|
18
|
* @author k.luther
|
19
|
\* @since 15.07.2016
|
20
|
*
|
21
|
*/
|
22
|
public class GbifImportConfigurator<GbifImportState, InputStream> extends SpecimenImportConfiguratorBase {
|
23
|
|
24
|
private static IInputTransformer defaultTransformer = null;
|
25
|
|
26
|
/**
|
27
|
* @param transformer
|
28
|
*/
|
29
|
public GbifImportConfigurator(IInputTransformer transformer) {
|
30
|
super(transformer);
|
31
|
// TODO Auto-generated constructor stub
|
32
|
}
|
33
|
|
34
|
public static GbifImportConfigurator newInstance(OccurenceQuery query){
|
35
|
GbifImportConfigurator newInstance = new GbifImportConfigurator<>(defaultTransformer);
|
36
|
newInstance.setOccurenceQuery(query);
|
37
|
return newInstance;
|
38
|
}
|
39
|
|
40
|
/**
|
41
|
*
|
42
|
*/
|
43
|
private static final long serialVersionUID = 1L;
|
44
|
|
45
|
|
46
|
/* (non-Javadoc)
|
47
|
* @see eu.etaxonomy.cdm.io.common.ImportConfiguratorBase#makeIoClassList()
|
48
|
*/
|
49
|
@Override
|
50
|
protected void makeIoClassList() {
|
51
|
System.out.println("makeIOClassList");
|
52
|
ioClassList = new Class[]{
|
53
|
GbifImport.class,
|
54
|
};
|
55
|
|
56
|
}
|
57
|
|
58
|
/* (non-Javadoc)
|
59
|
* @see eu.etaxonomy.cdm.io.common.ImportConfiguratorBase#getSourceReference()
|
60
|
*/
|
61
|
@Override
|
62
|
public Reference getSourceReference() {
|
63
|
// TODO Auto-generated method stub
|
64
|
return null;
|
65
|
}
|
66
|
|
67
|
|
68
|
|
69
|
@Override
|
70
|
public SpecimenImportStateBase getNewState() {
|
71
|
SpecimenImportStateBase state = new SpecimenImportStateBase(this);
|
72
|
|
73
|
return state;
|
74
|
}
|
75
|
|
76
|
|
77
|
|
78
|
}
|