Revision c8f12e19
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/entitycreator/MediaCreator.java | ||
---|---|---|
17 | 17 |
/** |
18 | 18 |
* @author k.luther |
19 | 19 |
* @date 10.03.2016 |
20 |
* |
|
21 | 20 |
*/ |
22 | 21 |
public class MediaCreator implements IEntityCreator<Media> { |
23 | 22 |
|
24 |
/** |
|
25 |
* {@inheritDoc} |
|
26 |
*/ |
|
27 | 23 |
@Override |
28 | 24 |
public Media createEntity(String text) { |
29 | 25 |
Media result = Media.NewInstance(); |
... | ... | |
31 | 27 |
return result; |
32 | 28 |
} |
33 | 29 |
|
34 |
/** |
|
35 |
* {@inheritDoc} |
|
36 |
*/ |
|
37 | 30 |
@Override |
38 | 31 |
public Media createEntity(Object key, String text) { |
39 | 32 |
if (key.equals(Media.class)){ |
... | ... | |
44 | 37 |
return null; |
45 | 38 |
} |
46 | 39 |
|
47 |
/** |
|
48 |
* {@inheritDoc} |
|
49 |
*/ |
|
50 | 40 |
@Override |
51 | 41 |
public Map<Object, String> getKeyLabelPairs() { |
52 |
Map<Object, String> result = new HashMap<Object, String>();
|
|
53 |
result.put(Media.class, "Media"); |
|
42 |
Map<Object, String> result = new HashMap<>(); |
|
43 |
result.put(Media.class, "Media");
|
|
54 | 44 |
return result; |
55 | 45 |
} |
56 | 46 |
|
57 |
/** |
|
58 |
* {@inheritDoc} |
|
59 |
*/ |
|
60 | 47 |
@Override |
61 | 48 |
public boolean savesEntity() { |
62 | 49 |
// TODO Auto-generated method stub |
63 | 50 |
return false; |
64 | 51 |
} |
65 |
|
|
66 | 52 |
} |
Also available in: Unified diff
cleanup