Project

General

Profile

Download (2.64 KB) Statistics
| Branch: | Tag: | Revision:
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.description;
11

    
12

    
13
import eu.etaxonomy.cdm.model.common.Language;
14
import eu.etaxonomy.cdm.model.common.OrderedTermBase;
15
import eu.etaxonomy.cdm.model.common.TermVocabulary;
16

    
17
import org.apache.log4j.Logger;
18
import org.hibernate.envers.Audited;
19

    
20
import javax.persistence.*;
21
import javax.xml.bind.annotation.XmlAccessType;
22
import javax.xml.bind.annotation.XmlAccessorType;
23
import javax.xml.bind.annotation.XmlRootElement;
24
import javax.xml.bind.annotation.XmlType;
25

    
26
/**
27
 * This class represents possible modulations for the validity of
28
 * information pieces ({@link DescriptionElementBase} description elements).
29
 * It can cover probability ("perhaps"), frequency ("often") intensity ("very"),
30
 * timing ("spring") and other domains. Its instances can be grouped to build
31
 * different controlled {@link TermVocabulary term vocabularies}.
32
 * <P>
33
 * This class corresponds to GeneralModifierNLDType according to
34
 * the SDD schema.
35
 * 
36
 * @author m.doering
37
 * @version 1.0
38
 * @created 08-Nov-2007 13:06:35
39
 */
40
@XmlAccessorType(XmlAccessType.FIELD)
41
@XmlType(name = "Modifier")
42
@XmlRootElement(name = "Modifier")
43
@Entity
44
@Audited
45
public class Modifier extends OrderedTermBase<Modifier> {
46
	private static final long serialVersionUID = -2491833848163461951L;
47
	@SuppressWarnings("unused")
48
	private static final Logger logger = Logger.getLogger(Modifier.class);
49
	
50
	/** 
51
	 * Class constructor: creates a new empty modifier instance.
52
	 * 
53
	 * @see #Modifier(String, String, String)
54
	 */
55
	protected Modifier(){
56
		super();
57
	}
58
	
59

    
60
	/** 
61
	 * Class constructor: creates a new modifier with a description
62
	 * (in the {@link Language#DEFAULT() default language}), a label and a label abbreviation.
63
	 * 
64
	 * @param	term  		 the string (in the default language) describing the
65
	 * 						 new modifier to be created 
66
	 * @param	label  		 the string identifying the new modifier to be created
67
	 * @param	labelAbbrev  the string identifying (in abbreviated form) the
68
	 * 						 new modifier to be created
69
	 * @see 				 #Modifier()
70
	 */
71
	public Modifier(String term, String label, String labelAbbrev) {
72
		super(term, label, labelAbbrev);
73
	}
74

    
75
	/** 
76
	 * Creates a new empty modifier instance.
77
	 * 
78
	 * @see #Modifier(String, String, String)
79
	 */
80
	public static Modifier NewInstance(){
81
		return new Modifier();
82
	}
83

    
84

    
85
	@Override
86
	protected void setDefaultTerms(TermVocabulary<Modifier> termVocabulary) {
87
		// TODO Auto-generated method stub
88
		
89
	}
90
}
(13-13/31)