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.
33 * <p>getEditableText</p>
35 * @return a {@link java.lang.String} object.
37 String
getEditableText();
40 * <p>getAttachedEntities</p>
42 * @return a {@link java.util.Set} object.
44 Set
<T
> getAttachedEntities();
49 * @param mergeTarget a T object.
51 void markAsMerged(T mergeTarget
);
54 * <p>markAsDeleted</p>
61 * @param isNew a boolean.
63 void markAsNew(boolean isNew
);
66 * <p>isMarkedAsMerged</p>
70 boolean isMarkedAsMerged();
73 * <p>isMarkedAsDeleted</p>
77 boolean isMarkedAsDeleted();
80 * <p>isMarkedAsNew</p>
84 boolean isMarkedAsNew();
89 * @param text a {@link java.lang.String} object.
91 void setText(String text
);
94 * <p>getMergeTarget</p>
110 * @param dirty a boolean.
112 void setDirty(boolean dirty
);