Project

General

Profile

Download (1.1 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 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.media;
11

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

    
15
/**
16
 * If a class is implementing this interface a set of <code>media</code> may be added
17
 * to an instance of this class. The class should also implement the protected method:
18
 * <code>protected void setMedia(Set<Media> media)</code> that maybe used by the persistence
19
 *  framework (e.g. hibernate) 
20
 *  
21
 * @author a.mueller
22
 * @created 07.07.2008
23
 * @version 1.0
24
 */
25
public interface IMediaEntity extends IMediaDocumented{
26

    
27
	/**
28
	 * Gets all media belonging to this object
29
	 * @return
30
	 */
31
	
32
	public Set<Media> getMedia();
33
	
34
	/**
35
	 * Adds a media to this object
36
	 * @param media
37
	 */
38
	public void addMedia(Media media);
39

    
40
	/**
41
	 * Removes a media from this object
42
	 * @param media
43
	 */
44
	public void removeMedia(Media media);
45

    
46
}
(3-3/13)