c0b8499506b48540896acd851bb446e14cf7f980
[taxeditor.git] / taxeditor-bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / IEntityContainer.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
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.
9 */
10 package eu.etaxonomy.taxeditor.bulkeditor;
11
12 import java.util.Set;
13
14 import eu.etaxonomy.cdm.model.common.CdmBase;
15
16 /**
17 * @author p.ciardelli
18 * @created 25.06.2009
19 * @version 1.0
20 * @param <T>
21 */
22 public interface IEntityContainer<T extends CdmBase> {
23
24 T getCdmEntity();
25
26 String getEditableText();
27
28 Set<CdmBase> getAttachedEntities();
29
30 void markAsMerged(T mergeTarget);
31
32 void markAsDeleted();
33
34 void markAsNew();
35
36 boolean isMarkedAsMerged();
37
38 boolean isMarkedAsDeleted();
39
40 boolean isMarkedAsNew();
41
42 void setText(String text);
43
44 Object getPropertySource();
45
46 /**
47 * @return
48 */
49 T getMergeTarget();
50
51 /**
52 * @return
53 */
54 boolean isDirty();
55
56 /**
57 * @param b
58 */
59 void setDirty(boolean dirty);
60 }