minor
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / location / ReferenceSystem.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 eu.etaxonomy.cdm.model.location;
11
12
13 import eu.etaxonomy.cdm.model.common.DefinedTermBase;
14 import eu.etaxonomy.cdm.model.common.TermVocabulary;
15
16 import org.apache.log4j.Logger;
17 import org.hibernate.envers.Audited;
18
19 import javax.persistence.*;
20 import javax.xml.bind.annotation.XmlAccessType;
21 import javax.xml.bind.annotation.XmlAccessorType;
22 import javax.xml.bind.annotation.XmlRootElement;
23 import javax.xml.bind.annotation.XmlType;
24
25 /**
26 * Reference systems for coordinates also according to OGC (Open Geographical
27 * Consortium) The list should be extensible at runtime through configuration.
28 * This needs to be investigated.
29 * @author m.doering
30 * @version 1.0
31 * @created 08-Nov-2007 13:06:49
32 */
33 @XmlAccessorType(XmlAccessType.FIELD)
34 @XmlType(name = "ReferenceSystem")
35 @XmlRootElement(name = "ReferenceSystem")
36 @Entity
37 @Audited
38 public class ReferenceSystem extends DefinedTermBase<ReferenceSystem> {
39 private static final long serialVersionUID = 2704455299046749175L;
40 private static final Logger logger = Logger.getLogger(ReferenceSystem.class);
41
42 /**
43 * Factory method
44 * @return
45 */
46 public static ReferenceSystem NewInstance(){
47 return new ReferenceSystem();
48 }
49
50 /**
51 * Factory method
52 * @return
53 */
54 public static ReferenceSystem NewInstance(String term, String label, String labelAbbrev){
55 return new ReferenceSystem(term, label, labelAbbrev);
56 }
57
58 /**
59 * Constructor
60 */
61 private ReferenceSystem() {
62 super();
63 }
64
65 /**
66 * Constructor
67 */
68 public ReferenceSystem(String term, String label, String labelAbbrev) {
69 super(term, label, labelAbbrev);
70 }
71
72
73 public static final ReferenceSystem WGS84(){
74 logger.warn("not yet implemented");
75 return null;
76 }
77
78 @Override
79 protected void setDefaultTerms(
80 TermVocabulary<ReferenceSystem> termVocabulary) {
81 // TODO Auto-generated method stub
82 logger.warn("Not yet implemented");
83 }
84
85 }