Project

General

Profile

Download (1.5 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 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

    
10
package eu.etaxonomy.cdm.io.common;
11

    
12
import eu.etaxonomy.cdm.io.common.events.IIoEvent;
13

    
14

    
15
/**
16
 * @author a.mueller
17
 * @since 20.06.2008
18
 */
19
public interface ICdmIO<STATE extends IoStateBase> extends  IIoObservable {
20

    
21
	final String TEAM_STORE = "team";
22
	final String REFERENCE_STORE = "reference";
23
	final String NOMREF_STORE = "nomRef";
24
	final String TAXONNAME_STORE = "taxonName";
25
	final String TAXON_STORE = "taxon";
26
	final String FEATURE_STORE = "feature";
27
	final String SPECIMEN_STORE = "specimen";
28

    
29
	public boolean check(STATE state);
30

    
31
//	public boolean invoke(T config, Map<String, MapWrapper<? extends CdmBase>> stores);
32

    
33
//	public boolean invoke(IoState<T> state);
34

    
35
	public void updateProgress(STATE state, String message);
36

    
37
	public void updateProgress(STATE state, String message, int worked);
38

    
39
	public void warnProgress(STATE state, String message, Throwable e);
40

    
41
    public long countSteps(STATE state);
42

    
43
//******************** Observers *********************************************************
44

    
45
	/**
46
	 * If this object fires an event then notify all of its observers.
47
	 */
48
	public void fire(IIoEvent event);
49

    
50
//******************** End Observers *********************************************************
51

    
52
}
(26-26/65)