Project

General

Profile

Download (1.1 KB) Statistics
| Branch: | Tag: | Revision:
1 1412a4c4 Katja Luther
/**
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 71dcc146 Andreas Müller
package eu.etaxonomy.cdm.model.media;
11
12 2beb45d7 ben.clark
import java.util.List;
13 71dcc146 Andreas Müller
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 f6765014 ben.clark
	
32 58452b54 Katja Luther
	public Set<Media> getMedia();
33 71dcc146 Andreas Müller
	
34
	/**
35
	 * Adds a media to this object
36
	 * @param media
37
	 */
38 58452b54 Katja Luther
	public void addMedia(Media media);
39 71dcc146 Andreas Müller
40
	/**
41
	 * Removes a media from this object
42
	 * @param media
43
	 */
44 58452b54 Katja Luther
	public void removeMedia(Media media);
45 71dcc146 Andreas Müller
46
}