3 * Copyright (C) 2016 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.bulkeditor
.input
.entitycreator
;
12 import java
.util
.HashMap
;
15 import eu
.etaxonomy
.cdm
.model
.media
.Media
;
16 import eu
.etaxonomy
.taxeditor
.annotatedlineeditor
.IEntityCreator
;
23 public class MediaCreator
implements IEntityCreator
<Media
> {
29 public Media
createEntity(String text
) {
30 Media result
= Media
.NewInstance();
31 result
.setTitleCache(text
);
39 public Media
createEntity(Object key
, String text
) {
40 if (key
.equals(Media
.class)){
41 Media result
= Media
.NewInstance();
42 result
.setTitleCache(text
);
52 public Map
<Object
, String
> getKeyLabelPairs() {
53 Map
<Object
, String
> result
= new HashMap
<Object
, String
>();
54 result
.put(Media
.class, "Media");
62 public boolean savesEntity() {
63 // TODO Auto-generated method stub