Project

General

Profile

« Previous | Next » 

Revision 639ad834

Added by Katja Luther almost 7 years ago

ref #6570: minor

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/IEntityCreator.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
11 11

  
12 12
import java.util.Map;
13 13

  
14
import eu.etaxonomy.cdm.model.common.ICdmBase;
15

  
16 14

  
17 15
/**
18 16
 * <p>IEntityCreator interface.</p>
......
22 20
 * @version 1.0
23 21
 */
24 22
public interface IEntityCreator<T> {
25
	
23

  
26 24
	/**
27 25
	 * <p>createEntity</p>
28 26
	 *
......
31 29
	 * @return a T object.
32 30
	 */
33 31
	T createEntity(String text);
34
	
32

  
35 33
	/**
36 34
	 * <p>createEntity</p>
37 35
	 *
......
40 38
	 * @return a T object.
41 39
	 */
42 40
	T createEntity(Object key, String text);
43
	
41

  
44 42
	/**
45 43
	 * Get a map of keys for all objects that can be created by this entity creator
46 44
	 * along with their string representations.
47 45
	 *
48 46
	 * @return a {@link java.util.Map} object.
49 47
	 */
50
	Map<Object, String> getKeyLabelPairs();
51
	
48
	Map<? extends Object, String> getKeyLabelPairs();
49

  
52 50
	/**
53 51
	 * Return a flag indicating whether this creator also saves the entities
54 52
	 *
55 53
	 * @return true or false
56 54
	 */
57 55
	boolean savesEntity();
58
	
56

  
59 57

  
60 58
}

Also available in: Unified diff