2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.bulkeditor
.input
.entitycreator
;
12 import java
.util
.HashMap
;
15 import eu
.etaxonomy
.cdm
.model
.common
.Group
;
16 import eu
.etaxonomy
.taxeditor
.annotatedlineeditor
.IEntityCreator
;
20 * @created Mar 9, 2011
23 public class GroupCreator
implements IEntityCreator
<Group
> {
26 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#createEntity(java.lang.String)
29 public Group
createEntity(String text
) {
30 return createEntity(null, text
);
34 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#createEntity(java.lang.Object, java.lang.String)
37 public Group
createEntity(Object key
, String text
) {
38 return Group
.NewInstance(text
);
42 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#getKeyLabelPairs()
45 public Map
<Object
, String
> getKeyLabelPairs() {
46 Map
<Object
, String
> result
= new HashMap
<Object
, String
>();
47 result
.put(Group
.class, "Group");
52 public boolean savesEntity() {
53 // TODO Auto-generated method stub