Project

General

Profile

Download (2.08 KB) Statistics
| Branch: | Tag: | Revision:
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

    
10
package eu.etaxonomy.cdm.model.common;
11

    
12
import java.util.List;
13
import java.util.Set;
14

    
15
import eu.etaxonomy.cdm.model.media.Rights;
16

    
17
public interface IIdentifiableEntity extends ISourceable<IdentifiableSource>, IAnnotatableEntity{
18

    
19
	public LSID getLsid();
20

    
21
	public void setLsid(LSID lsid);
22

    
23
	public String generateTitle();
24

    
25
	public String getTitleCache();
26

    
27
	public void setTitleCache(String titleCache);
28

    
29
	public void setTitleCache(String titleCache, boolean protectCache);
30

    
31
	public Set<Rights> getRights();
32

    
33
	public void addRights(Rights right);
34

    
35
	public void removeRights(Rights right);
36

    
37
	public List<Credit> getCredits();
38

    
39
	public Credit getCredits(Integer index);
40
	
41
	public void addCredit(Credit credig);
42
	
43
	public void addCredit(Credit credit, int index);
44

    
45
	public void removeCredit(Credit credit);
46

    
47
	public void removeCredit(int index);
48

    
49
	public Set<Extension> getExtensions();
50

    
51
	public void addExtension(Extension extension);
52

    
53
	public void removeExtension(Extension extension);
54

    
55
	public boolean isProtectedTitleCache();
56

    
57
	public void setProtectedTitleCache(boolean protectedTitleCache);
58

    
59
	/**
60
	 * Overrides {@link eu.etaxonomy.cdm.model.common.CdmBase#toString()}.
61
	 * This returns an String that identifies the object well without beeing necessarily unique.
62
	 * Specification: This method should never call other object' methods so it can be well used for debugging 
63
	 * without problems like lazy loading, unreal states etc.
64
	 * Note: If overriding this method's javadoc always copy or link the above requirement. 
65
	 * If not overwritten by a subclass method returns the class, id and uuid as a string for any CDM object. 
66
	 * For example: Taxon#13<b5938a98-c1de-4dda-b040-d5cc5bfb3bc0>
67
	 * @see java.lang.Object#toString()
68
	 */
69
	public String toString();
70

    
71
	public byte[] getData();
72

    
73
}
(20-20/62)