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
;
13 import org
.apache
.log4j
.Logger
;
15 import eu
.etaxonomy
.taxeditor
.annotatedlineeditor
.IEntityCreator
;
16 import eu
.etaxonomy
.taxeditor
.annotatedlineeditor
.IEntityCreatorService
;
17 import eu
.etaxonomy
.taxeditor
.bulkeditor
.input
.AgentEditorInput
;
18 import eu
.etaxonomy
.taxeditor
.bulkeditor
.input
.NameEditorInput
;
19 import eu
.etaxonomy
.taxeditor
.bulkeditor
.input
.OccurrenceEditorInput
;
20 import eu
.etaxonomy
.taxeditor
.bulkeditor
.input
.ReferenceEditorInput
;
23 * <p>BulkEditorEntityCreatorService class.</p>
29 public class BulkEditorEntityCreatorService
implements IEntityCreatorService
{
30 private static final Logger logger
= Logger
31 .getLogger(BulkEditorEntityCreatorService
.class);
34 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreatorService#getEntityCreator(java.lang.Object)
37 public IEntityCreator
getEntityCreator(Object element
) {
38 if (element
instanceof ReferenceEditorInput
) {
39 return new ReferenceCreator();
41 if (element
instanceof NameEditorInput
) {
42 return new NameCreator();
44 if (element
instanceof AgentEditorInput
) {
45 return new TeamOrPersonCreator();
47 if (element
instanceof OccurrenceEditorInput
) {
48 return new OccurrenceCreator();
54 * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreatorService#setEntityCreator(eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator, java.lang.Object)
57 public void setEntityCreator(IEntityCreator entityCreator
, Object element
) {}