3 * Copyright (C) 2007 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.
11 package eu
.etaxonomy
.taxeditor
.bulkeditor
.input
.entitycreator
;
13 import java
.util
.HashMap
;
16 import eu
.etaxonomy
.cdm
.model
.common
.Group
;
17 import eu
.etaxonomy
.taxeditor
.annotatedlineeditor
.IEntityCreator
;
21 * @created Mar 9, 2011
24 public class GroupCreator
implements IEntityCreator
<Group
> {
27 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#createEntity(java.lang.String)
30 public Group
createEntity(String text
) {
31 return createEntity(null, text
);
35 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#createEntity(java.lang.Object, java.lang.String)
38 public Group
createEntity(Object key
, String text
) {
39 return Group
.NewInstance(text
);
43 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#getKeyLabelPairs()
46 public Map
<Object
, String
> getKeyLabelPairs() {
47 Map
<Object
, String
> result
= new HashMap
<Object
, String
>();
48 result
.put(Group
.class, "Group");