Merge branch 'release/5.19.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / annotatedlineeditor / IEntityContainer.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9 package eu.etaxonomy.taxeditor.annotatedlineeditor;
10
11 import java.util.Set;
12
13 /**
14 * <p>IEntityContainer interface.</p>
15 *
16 * @author p.ciardelli
17 * @created 25.06.2009
18 * @param <T>
19 */
20 public interface IEntityContainer<T> {
21
22 /**
23 * <p>getEntity</p>
24 */
25 T getEntity();
26
27 void setEntity(Object entity);
28
29 /**
30 * <p>getEditableText</p>
31 */
32 String getEditableText();
33
34 /**
35 * <p>getAttachedEntities</p>
36 */
37 Set<T> getAttachedEntities();
38
39 /**
40 * <p>markAsMerged</p>
41 */
42 void markAsMerged(T mergeTarget);
43
44 /**
45 * <p>markAsDeleted</p>
46 */
47 void markAsDeleted();
48
49 /**
50 * <p>markAsNew</p>
51 *
52 * @param isNew a boolean.
53 */
54 void markAsNew(boolean isNew);
55
56 /**
57 * <p>isMarkedAsMerged</p>
58 *
59 * @return a boolean.
60 */
61 boolean isMarkedAsMerged();
62
63 /**
64 * <p>isMarkedAsDeleted</p>
65 *
66 * @return a boolean.
67 */
68 boolean isMarkedAsDeleted();
69
70 /**
71 * <p>isMarkedAsNew</p>
72 *
73 * @return a boolean.
74 */
75 boolean isMarkedAsNew();
76
77 /**
78 * <p>setText</p>
79 */
80 void setText(String text);
81
82 /**
83 * <p>getMergeTarget</p>
84 *
85 * @return a T object.
86 */
87 T getMergeTarget();
88
89 /**
90 * <p>isDirty</p>
91 *
92 * @return a boolean.
93 */
94 boolean isDirty();
95
96 /**
97 * <p>setDirty</p>
98 *
99 * @param dirty a boolean.
100 */
101 void setDirty(boolean dirty);
102 }