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>
21 public interface IEntityContainer
<T
> {
26 * @param <T> a T object.
31 void setEntity(Object entity
);
34 * <p>getEditableText</p>
36 * @return a {@link java.lang.String} object.
38 String
getEditableText();
41 * <p>getAttachedEntities</p>
43 * @return a {@link java.util.Set} object.
45 Set
<T
> getAttachedEntities();
50 * @param mergeTarget a T object.
52 void markAsMerged(T mergeTarget
);
55 * <p>markAsDeleted</p>
62 * @param isNew a boolean.
64 void markAsNew(boolean isNew
);
67 * <p>isMarkedAsMerged</p>
71 boolean isMarkedAsMerged();
74 * <p>isMarkedAsDeleted</p>
78 boolean isMarkedAsDeleted();
81 * <p>isMarkedAsNew</p>
85 boolean isMarkedAsNew();
90 * @param text a {@link java.lang.String} object.
92 void setText(String text
);
95 * <p>getMergeTarget</p>
111 * @param dirty a boolean.
113 void setDirty(boolean dirty
);