Major update to the latest CDM definition 2.Nov.2007
[cdmlib.git] / cdmlibrary / src / main / java / eu / etaxonomy / cdm / model / common / ReferencedEntityBase.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.StrictReferenceBase;
14 import org.apache.log4j.Logger;
15
16 /**
17 * abstract class for all objects that may have a reference
18 * @author m.doering
19 * @version 1.0
20 * @created 02-Nov-2007 18:15:12
21 */
22 public abstract class ReferencedEntityBase extends AnnotatableEntity implements IReferencedEntity {
23 static Logger logger = Logger.getLogger(ReferencedEntityBase.class);
24
25 //Details of the reference. These are mostly (implicitly) pages but can also be tables or any other element of a
26 //publication.
27 //{if the citationMicroReference exists then there must be also a reference}
28
29 @Description("Details of the reference. These are mostly (implicitly) pages but can also be tables or any other element of a publication.
30 {if the citationMicroReference exists then there must be also a reference}
31 ")
32 private String citationMicroReference;
33 @Description("")
34 private String originalNameString;
35
36 public String getCitationMicroReference(){
37 return citationMicroReference;
38 }
39
40 /**
41 *
42 * @param newVal
43 */
44 public void setCitationMicroReference(String newVal){
45 citationMicroReference = newVal;
46 }
47
48 public String getOriginalNameString(){
49 return originalNameString;
50 }
51
52 /**
53 *
54 * @param newVal
55 */
56 public void setOriginalNameString(String newVal){
57 originalNameString = newVal;
58 }
59
60 @Transient
61 public String getCitation(){
62 return "";
63 }
64
65 @Transient
66 public StrictReferenceBase getCitation(){
67 return null;
68 }
69
70 }