ref #6190 removing svn property place holder in first line of code - java files
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / input / entitycreator / GroupCreator.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.taxeditor.bulkeditor.input.entitycreator;
11
12 import java.util.HashMap;
13 import java.util.Map;
14
15 import eu.etaxonomy.cdm.model.common.Group;
16 import eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator;
17
18 /**
19 * @author n.hoffmann
20 * @created Mar 9, 2011
21 * @version 1.0
22 */
23 public class GroupCreator implements IEntityCreator<Group> {
24
25 /* (non-Javadoc)
26 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#createEntity(java.lang.String)
27 */
28 @Override
29 public Group createEntity(String text) {
30 return createEntity(null, text);
31 }
32
33 /* (non-Javadoc)
34 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#createEntity(java.lang.Object, java.lang.String)
35 */
36 @Override
37 public Group createEntity(Object key, String text) {
38 return Group.NewInstance(text);
39 }
40
41 /* (non-Javadoc)
42 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator#getKeyLabelPairs()
43 */
44 @Override
45 public Map<Object, String> getKeyLabelPairs() {
46 Map<Object, String> result = new HashMap<Object, String>();
47 result.put(Group.class, "Group");
48 return result;
49 }
50
51 @Override
52 public boolean savesEntity() {
53 // TODO Auto-generated method stub
54 return false;
55 }
56
57 }