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
.annotatedlineeditor
;
16 * <p>IEntityCreator interface.</p>
22 public interface IEntityCreator
<T
> {
27 * @param text a {@link java.lang.String} object.
28 * @param <T> a T object.
31 T
createEntity(String text
);
36 * @param key a {@link java.lang.Object} object.
37 * @param text a {@link java.lang.String} object.
40 T
createEntity(Object key
, String text
);
43 * Get a map of keys for all objects that can be created by this entity creator
44 * along with their string representations.
46 * @return a {@link java.util.Map} object.
48 Map
<?
extends Object
, String
> getKeyLabelPairs();
51 * Return a flag indicating whether this creator also saves the entities
53 * @return true or false
55 boolean savesEntity();