2 * Copyright (C) 2007 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
.common
;
13 import org
.apache
.log4j
.Logger
;
16 import javax
.persistence
.*;
19 * metadata for an external file such as images, phylogenetic trees, or audio
20 * recordings available through the location attribute!
23 * @created 08-Nov-2007 13:06:34
26 @Inheritance(strategy
=InheritanceType
.SINGLE_TABLE
)
27 public class MediaInstance
extends VersionableEntity
{
28 static Logger logger
= Logger
.getLogger(MediaInstance
.class);
29 //http://www.iana.org/assignments/media-types
30 private String mimeType
;
31 //filename suffix defining the media-type as an alternative to the proper MIME type
32 private String suffix
;
33 //where the media file is stored
39 public String
getMimeType(){
45 * @param mimeType mimeType
47 public void setMimeType(String mimeType
){
48 this.mimeType
= mimeType
;
51 public String
getSuffix(){
57 * @param suffix suffix
59 public void setSuffix(String suffix
){
63 public String
getUri(){
71 public void setUri(String uri
){
83 public void setSize(int size
){