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.
10 package eu
.etaxonomy
.taxeditor
.annotatedlineeditor
;
15 * <p>IEntityContainer interface.</p>
22 public interface IEntityContainer
<T
> {
27 * @param <T> a T object.
32 void setEntity(Object entity
);
35 * <p>getEditableText</p>
37 * @return a {@link java.lang.String} object.
39 String
getEditableText();
42 * <p>getAttachedEntities</p>
44 * @return a {@link java.util.Set} object.
46 Set
<T
> getAttachedEntities();
51 * @param mergeTarget a T object.
53 void markAsMerged(T mergeTarget
);
56 * <p>markAsDeleted</p>
63 * @param isNew a boolean.
65 void markAsNew(boolean isNew
);
68 * <p>isMarkedAsMerged</p>
72 boolean isMarkedAsMerged();
75 * <p>isMarkedAsDeleted</p>
79 boolean isMarkedAsDeleted();
82 * <p>isMarkedAsNew</p>
86 boolean isMarkedAsNew();
91 * @param text a {@link java.lang.String} object.
93 void setText(String text
);
96 * <p>getMergeTarget</p>
112 * @param dirty a boolean.
114 void setDirty(boolean dirty
);