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.agent;
|
11
|
|
12
|
import javax.persistence.Entity;
|
13
|
import javax.xml.bind.annotation.XmlAccessType;
|
14
|
import javax.xml.bind.annotation.XmlAccessorType;
|
15
|
import javax.xml.bind.annotation.XmlType;
|
16
|
|
17
|
import org.apache.log4j.Logger;
|
18
|
import org.hibernate.envers.Audited;
|
19
|
|
20
|
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
|
21
|
import eu.etaxonomy.cdm.model.common.TermVocabulary;
|
22
|
|
23
|
/**
|
24
|
* Represents an element of a controlled {@link eu.etaxonomy.cdm.model.common.TermVocabulary vocabulary} for different kinds of institutions.
|
25
|
* Each {@link DefinedTermBase element} belongs to one vocabulary.
|
26
|
* <p>
|
27
|
* This class corresponds to: InstitutionTypeTerm according to the TDWG ontology.
|
28
|
*
|
29
|
* @author m.doering
|
30
|
* @version 1.0
|
31
|
* @created 08-Nov-2007 13:06:30
|
32
|
*/
|
33
|
@XmlAccessorType(XmlAccessType.FIELD)
|
34
|
@XmlType(name = "InstitutionType")
|
35
|
@Entity
|
36
|
@Audited
|
37
|
public class InstitutionType extends DefinedTermBase<InstitutionType> {
|
38
|
private static final long serialVersionUID = 8714866112728127219L;
|
39
|
public static final Logger logger = Logger.getLogger(InstitutionType.class);
|
40
|
|
41
|
// ************* CONSTRUCTORS *************/
|
42
|
/**
|
43
|
* Class constructor: creates a new empty institution type.
|
44
|
*
|
45
|
* @see #InstitutionType(String, String, String)
|
46
|
*/
|
47
|
public InstitutionType() {
|
48
|
super();
|
49
|
// TODO Auto-generated constructor stub
|
50
|
}
|
51
|
|
52
|
/**
|
53
|
* Class constructor using a description (in the {@link eu.etaxonomy.cdm.model.common.Language#DEFAULT() default language}),
|
54
|
* a label and a label abbreviation.
|
55
|
*
|
56
|
* @param term the string describing this new vocabulary element
|
57
|
* @param label the string which identifies this new vocabulary element
|
58
|
* @param labelAbbrev the string identifying (in abbreviated form) this
|
59
|
* new vocabulary element
|
60
|
* @see #InstitutionType()
|
61
|
* @see eu.etaxonomy.cdm.model.common.Representation
|
62
|
* @see eu.etaxonomy.cdm.model.common.TermBase#TermBase(String, String, String)
|
63
|
*/
|
64
|
public InstitutionType(String term, String label, String labelAbbrev) {
|
65
|
super(term, label, labelAbbrev);
|
66
|
// TODO Auto-generated constructor stub
|
67
|
}
|
68
|
|
69
|
@Override
|
70
|
protected void setDefaultTerms(TermVocabulary<InstitutionType> termVocabulary) {
|
71
|
// TODO Auto-generated method stub
|
72
|
|
73
|
}
|
74
|
|
75
|
|
76
|
}
|