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>IEntityContainer interface.</p>
20 public interface IEntityContainer
<T
> {
27 void setEntity(Object entity
);
30 * <p>getEditableText</p>
32 String
getEditableText();
35 * <p>getAttachedEntities</p>
37 Set
<T
> getAttachedEntities();
42 void markAsMerged(T mergeTarget
);
45 * <p>markAsDeleted</p>
52 * @param isNew a boolean.
54 void markAsNew(boolean isNew
);
57 * <p>isMarkedAsMerged</p>
61 boolean isMarkedAsMerged();
64 * <p>isMarkedAsDeleted</p>
68 boolean isMarkedAsDeleted();
71 * <p>isMarkedAsNew</p>
75 boolean isMarkedAsNew();
80 void setText(String text
);
83 * <p>getMergeTarget</p>
99 * @param dirty a boolean.
101 void setDirty(boolean dirty
);