Project

General

Profile

Download (1.51 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.name;
11

    
12

    
13
import eu.etaxonomy.cdm.model.common.ReferencedEntityBase;
14
import org.apache.log4j.Logger;
15
import javax.persistence.*;
16

    
17
/**
18
 * http://rs.tdwg.org/ontology/voc/TaxonName.rdf#PublicationStatus
19
 * @author m.doering
20
 * @version 1.0
21
 * @created 08-Nov-2007 13:06:39
22
 */
23
@Entity
24
public class NomenclaturalStatus extends ReferencedEntityBase {
25
	static Logger logger = Logger.getLogger(NomenclaturalStatus.class);
26
	//The nomenclatural code rule considered. The article/note/recommendation in the code in question that is commented on in
27
	//the note property.
28
	private String ruleConsidered;
29
	private NomenclaturalStatusType type;
30

    
31
	public static NomenclaturalStatus NewInstance(NomenclaturalStatusType nomStatusType){
32
		NomenclaturalStatus status = new NomenclaturalStatus();
33
		status.setType(nomStatusType);
34
		return status;
35
	}
36
	
37

    
38
	@ManyToOne
39
	public NomenclaturalStatusType getType(){
40
		return this.type;
41
	}
42

    
43
	/**
44
	 * 
45
	 * @param type    type
46
	 */
47
	public void setType(NomenclaturalStatusType type){
48
		this.type = type;
49
	}
50

    
51
	public String getRuleConsidered(){
52
		return this.ruleConsidered;
53
	}
54

    
55
	/**
56
	 * 
57
	 * @param ruleConsidered    ruleConsidered
58
	 */
59
	public void setRuleConsidered(String ruleConsidered){
60
		this.ruleConsidered = ruleConsidered;
61
	}
62

    
63
}
(11-11/20)