Project

General

Profile

Download (2.73 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 org.apache.log4j.Logger;
14

    
15
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
16
import eu.etaxonomy.cdm.model.common.Language;
17
import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
18
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
19
import eu.etaxonomy.cdm.model.name.Rank;
20
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
21
import eu.etaxonomy.cdm.model.reference.INomenclaturalReference;
22

    
23
import javax.persistence.*;
24

    
25
/**
26
 * The class representing restrictions for the validity of
27
 * {@link TaxonDescription taxon descriptions}. This could include not only {@link Stage life stage}
28
 * or {@link Sex sex} but also for instance particular organism parts or seasons.
29
 * 
30
 * @author m.doering
31
 * @version 1.0
32
 * @created 08-Nov-2007 13:06:50
33
 */
34
@Entity
35
public class Scope extends Modifier {
36
	static Logger logger = Logger.getLogger(Scope.class);
37
	
38
	// ************* CONSTRUCTORS *************/	
39

    
40
	/** 
41
	 * Class constructor: creates a new empty scope instance.
42
	 * 
43
	 * @see #Scope(String, String, String)
44
	 */
45
	protected Scope() {
46
		super();
47
	}
48

    
49
	/** 
50
	 * Class constructor: creates a new scope instance with a description (in the {@link Language#DEFAULT() default language}),
51
	 * a label and a label abbreviation.
52
	 * 
53
	 * @param	term  		 the string (in the default language) describing the
54
	 * 						 new scope to be created 
55
	 * @param	label  		 the string identifying the new scope to be created
56
	 * @param	labelAbbrev  the string identifying (in abbreviated form) the
57
	 * 						 new scope to be created
58
	 * @see 				 #Scope()
59
	 */
60
	protected Scope(String term, String label, String labelAbbrev) {
61
		super(term, label, labelAbbrev);
62
	}
63

    
64
	
65
	//********* METHODS **************************************/
66

    
67
	/** 
68
	 * Creates a new empty scope instance.
69
	 * 
70
	 * @see #NewInstance(String, String, String)
71
	 */
72
	public static Scope NewInstance(){
73
		return new Scope();
74
	}
75
	
76
	/** 
77
	 * Creates a new scope instance with a description (in the {@link Language#DEFAULT() default language}),
78
	 * a label and a label abbreviation.
79
	 * 
80
	 * @param	term  		 the string (in the default language) describing the
81
	 * 						 new scope to be created 
82
	 * @param	label  		 the string identifying the new scope to be created
83
	 * @param	labelAbbrev  the string identifying (in abbreviated form) the
84
	 * 						 new scope to be created
85
	 * @see 				 #NewInstance()
86
	 */
87
	public static Scope NewInstance(String term, String label, String labelAbbrev){
88
		return new Scope(term, label, labelAbbrev);
89
	}
90
}
(17-17/30)