Major update to the latest CDM definition 2.Nov.2007
[cdmlib.git] / cdmlibrary / src / main / java / eu / etaxonomy / cdm / model / common / ReferencedMedia.java
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 etaxonomy.cdm.model.common;
11
12
13 import etaxonomy.cdm.model.reference.ReferenceBase;
14 import etaxonomy.cdm.model.reference.StrictReferenceBase;
15 import org.apache.log4j.Logger;
16
17 /**
18 * @author m.doering
19 * @version 1.0
20 * @created 02-Nov-2007 18:15:13
21 */
22 public abstract class ReferencedMedia extends Media implements IReferencedEntity {
23 static Logger logger = Logger.getLogger(ReferencedMedia.class);
24
25 @Description("")
26 private String citationMicroReference;
27 private ReferenceBase citation;
28
29 public ReferenceBase getCitation(){
30 return citation;
31 }
32
33 /**
34 *
35 * @param newVal
36 */
37 public void setCitation(ReferenceBase newVal){
38 citation = newVal;
39 }
40
41 public String getCitationMicroReference(){
42 return citationMicroReference;
43 }
44
45 /**
46 *
47 * @param newVal
48 */
49 public void setCitationMicroReference(String newVal){
50 citationMicroReference = newVal;
51 }
52
53 @Transient
54 public String getCitation(){
55 return "";
56 }
57
58 @Transient
59 public StrictReferenceBase getCitation(){
60 return null;
61 }
62
63 }