Project

General

Profile

Download (1.51 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
 * @created 20.06.2008
18
 */
19

    
20
public interface ICdmIO<STATE extends IoStateBase> extends  IIoObservable {
21

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

    
30
	public boolean check(STATE state);
31

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

    
34

    
35

    
36
//	public boolean invoke(IoState<T> state);
37

    
38
	public void updateProgress(STATE state, String message);
39

    
40
	public void updateProgress(STATE state, String message, int worked);
41

    
42
	public void warnProgress(STATE state, String message, Throwable e);
43

    
44
    public long countSteps(STATE state);
45

    
46
//******************** Observers *********************************************************
47

    
48

    
49
	/**
50
	 * If this object fires an event then notify all of its observers.
51
	 */
52
	public void fire(IIoEvent event);
53

    
54
//******************** End Observers *********************************************************
55

    
56
}
(31-31/71)