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
> {
25 public static final String GROUP
= "Group";
28 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#createEntity(java.lang.String)
31 public Group
createEntity(String text
) {
32 return createEntity(null, text
);
36 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#createEntity(java.lang.Object, java.lang.String)
39 public Group
createEntity(Object key
, String text
) {
40 return Group
.NewInstance(text
);
44 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#getKeyLabelPairs()
47 public Map
<Object
, String
> getKeyLabelPairs() {
48 Map
<Object
, String
> result
= new HashMap
<Object
, String
>();
49 result
.put(Group
.class, GROUP
);
54 public boolean savesEntity() {
55 // TODO Auto-generated method stub