Major changes to the cdmlib default term loading and initialization, plus indexing...
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / common / ExtensionType.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.common;
11
12
13 import org.apache.log4j.Logger;
14
15 import javax.persistence.*;
16 import javax.xml.bind.annotation.XmlAccessType;
17 import javax.xml.bind.annotation.XmlAccessorType;
18 import javax.xml.bind.annotation.XmlType;
19
20 /**
21 * Extension types similar to dynamically defined attributes. These are not data
22 * types, but rather content types like "DOI", "2nd nomenclatural reference", "3rd
23 * hybrid parent" or specific local identifiers.
24 * @author m.doering
25 * @version 1.0
26 * @created 08-Nov-2007 13:06:23
27 */
28 @XmlAccessorType(XmlAccessType.FIELD)
29 @XmlType(name = "ExtensionType")
30 @Entity
31 //@Audited
32 public class ExtensionType extends DefinedTermBase<ExtensionType> {
33 private static final long serialVersionUID = -7761963794004133427L;
34 @SuppressWarnings("unused")
35 private static final Logger logger = Logger.getLogger(ExtensionType.class);
36
37 public ExtensionType() {
38 super();
39 }
40 public ExtensionType(String term, String label, String labelAbbrev) {
41 super(term, label, labelAbbrev);
42 }
43
44
45 public static final ExtensionType XML_FRAGMENT(){
46 return null;
47 }
48
49 public static final ExtensionType RDF_FRAGMENT(){
50 return null;
51 }
52
53 @Override
54 protected void setDefaultTerms(TermVocabulary<ExtensionType> termVocabulary) {
55 // TODO Auto-generated method stub
56
57 }
58
59 }