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
.annotatedlineeditor
;
15 import eu
.etaxonomy
.cdm
.model
.common
.ICdmBase
;
19 * <p>IEntityCreator interface.</p>
25 public interface IEntityCreator
<T
> {
30 * @param text a {@link java.lang.String} object.
31 * @param <T> a T object.
34 T
createEntity(String text
);
39 * @param key a {@link java.lang.Object} object.
40 * @param text a {@link java.lang.String} object.
43 T
createEntity(Object key
, String text
);
46 * Get a map of keys for all objects that can be created by this entity creator
47 * along with their string representations.
49 * @return a {@link java.util.Map} object.
51 Map
<Object
, String
> getKeyLabelPairs();
54 * Return a flag indicating whether this creator also saves the entities
56 * @return true or false
58 boolean savesEntity();