1
|
/**
|
2
|
* Copyright (C) 2014 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.taxeditor.view.dataimport;
|
10
|
|
11
|
import java.util.Collection;
|
12
|
|
13
|
import org.apache.logging.log4j.LogManager;
|
14
|
import org.apache.logging.log4j.Logger;
|
15
|
|
16
|
import eu.etaxonomy.cdm.ext.occurrence.OccurenceQuery;
|
17
|
|
18
|
/**
|
19
|
* Input for {@link DataImportEditor}. This class queries a data source for
|
20
|
* occurrences and passes them to the editor.
|
21
|
*
|
22
|
* @author pplitzner
|
23
|
* @date 25.02.2014
|
24
|
*/
|
25
|
public abstract class DataImportEditorInput<T> {
|
26
|
|
27
|
protected static Logger logger = LogManager.getLogger();
|
28
|
|
29
|
private Collection<T> results;
|
30
|
|
31
|
|
32
|
protected OccurenceQuery query;
|
33
|
|
34
|
public Collection<T> getResults() {
|
35
|
return results;
|
36
|
}
|
37
|
|
38
|
public void setResults(Collection<T> results) {
|
39
|
this.results = results;
|
40
|
}
|
41
|
|
42
|
@Override
|
43
|
public abstract int hashCode();
|
44
|
|
45
|
@Override
|
46
|
public abstract boolean equals(Object obj);
|
47
|
|
48
|
|
49
|
public abstract void query();
|
50
|
}
|