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
.location
;
13 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
14 import eu
.etaxonomy
.cdm
.model
.common
.TermVocabulary
;
16 import org
.apache
.log4j
.Logger
;
17 import org
.hibernate
.envers
.Audited
;
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
;
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.
31 * @created 08-Nov-2007 13:06:49
33 @XmlAccessorType(XmlAccessType
.FIELD
)
34 @XmlType(name
= "ReferenceSystem")
35 @XmlRootElement(name
= "ReferenceSystem")
38 public class ReferenceSystem
extends DefinedTermBase
<ReferenceSystem
> {
39 private static final long serialVersionUID
= 2704455299046749175L;
40 private static final Logger logger
= Logger
.getLogger(ReferenceSystem
.class);
46 public static ReferenceSystem
NewInstance(){
47 return new ReferenceSystem();
54 public static ReferenceSystem
NewInstance(String term
, String label
, String labelAbbrev
){
55 return new ReferenceSystem(term
, label
, labelAbbrev
);
61 private ReferenceSystem() {
68 public ReferenceSystem(String term
, String label
, String labelAbbrev
) {
69 super(term
, label
, labelAbbrev
);
73 public static final ReferenceSystem
WGS84(){
74 logger
.warn("not yet implemented");
79 protected void setDefaultTerms(
80 TermVocabulary
<ReferenceSystem
> termVocabulary
) {
81 // TODO Auto-generated method stub
82 logger
.warn("Not yet implemented");