Project

General

Profile

Download (2.68 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.location;
11

    
12
import java.util.UUID;
13

    
14
import javax.persistence.Entity;
15
import javax.xml.bind.annotation.XmlAccessType;
16
import javax.xml.bind.annotation.XmlAccessorType;
17
import javax.xml.bind.annotation.XmlRootElement;
18
import javax.xml.bind.annotation.XmlType;
19

    
20
import org.apache.log4j.Logger;
21

    
22
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
23

    
24
/**
25
 * @author m.doering
26
 * @version 1.0
27
 * @created 08-Nov-2007 13:06:18
28
 */
29
@XmlAccessorType(XmlAccessType.FIELD)
30
@XmlType(name = "Continent")
31
@XmlRootElement(name = "Continent")
32
@Entity
33
public class Continent extends DefinedTermBase {
34
	static Logger logger = Logger.getLogger(Continent.class);
35

    
36
	private static final UUID uuidEurope = UUID.fromString("3b69f979-408c-4080-b573-0ad78a315610");
37
	private static final UUID uuidAfrica = UUID.fromString("c204c529-d8d2-458f-b939-96f0ebd2cbe8");
38
	private static final UUID uuidAsia = UUID.fromString("7f4f4f89-3b4c-475d-929f-144109bd8457");
39
	private static final UUID uuidNAmerica = UUID.fromString("81d8aca3-ddd7-4537-9f2b-5327c95b6e28");
40
	private static final UUID uuidSAmerica = UUID.fromString("12b861c9-c922-498c-8b1a-62afc26d19e3");
41
	private static final UUID uuidOceania = UUID.fromString("c57adcff-5213-45f0-a5f0-97a9f5c0f1fe");
42
	private static final UUID uuidAntarctica = UUID.fromString("71fd9ab7-9b07-4eb6-8e54-c519aff56728");
43

    
44
	/**
45
	 * Factory method
46
	 * @return
47
	 */
48
	public static Continent NewInstance(){
49
		return new Continent();
50
	}
51

    
52
	/**
53
	 * Factory method
54
	 * @return
55
	 */
56
	public static Continent NewInstance(String term, String label, String labelAbbrev){
57
		return new Continent(term, label, labelAbbrev);
58
	}
59
	
60
	/**
61
	 * Constructor
62
	 */
63
	public Continent() {
64
		super();
65
	}
66
	public Continent(String term, String label, String labelAbbrev) {
67
		super(term, label, labelAbbrev);
68
	}
69

    
70
	public static final Continent getByUuid(UUID uuid){
71
		return (Continent)findByUuid(uuid);
72
	}
73

    
74
	public static final Continent EUROPE(){
75
		return getByUuid(uuidEurope);
76
	}
77

    
78
	public static final Continent AFRICA(){
79
		return getByUuid(uuidAfrica);
80
	}
81

    
82
	public static final Continent ASIA(){
83
		return getByUuid(uuidAsia);
84
	}
85

    
86
	public static final Continent NORTH_AMERICA(){
87
		return getByUuid(uuidNAmerica);
88
	}
89

    
90
	public static final Continent ANTARCTICA(){
91
		return getByUuid(uuidAntarctica);
92
	}
93

    
94
	public static final Continent SOUTH_AMERICA(){
95
		return getByUuid(uuidSAmerica);
96
	}
97

    
98
	public static final Continent OCEANIA(){
99
		return getByUuid(uuidOceania);
100
	}
101

    
102
}
(1-1/9)