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.
9 package eu
.etaxonomy
.taxeditor
.annotatedlineeditor
;
14 * <p>IEntityCreator interface.</p>
19 public interface IEntityCreator
<T
> {
24 * @param text a {@link java.lang.String} object.
27 public T
createEntity(String text
);
32 * @param key a {@link java.lang.Object} object.
33 * @param text a {@link java.lang.String} object.
36 public T
createEntity(Object key
, String text
);
39 * Get a map of keys for all objects that can be created by this entity creator
40 * along with their string representations.
42 * @return a {@link java.util.Map} object.
44 public Map
<?
extends Object
, String
> getKeyLabelPairs();
47 * Return a flag indicating whether this creator also saves the entities
49 * @return true or false
51 public boolean savesEntity();