2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.model
.media
;
12 import java
.util
.List
;
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)
25 public interface IMediaEntity
extends IMediaDocumented
{
28 * Gets all media belonging to this object
32 public Set
<Media
> getMedia();
35 * Adds a media to this object
38 public void addMedia(Media media
);
41 * Removes a media from this object
44 public void removeMedia(Media media
);