2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.model
.location
;
12 import java
.util
.UUID
;
14 import javax
.persistence
.Entity
;
16 import org
.apache
.log4j
.Logger
;
18 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
23 * @created 08-Nov-2007 13:06:18
26 public class Continent
extends DefinedTermBase
{
27 static Logger logger
= Logger
.getLogger(Continent
.class);
29 private static final UUID uuidEurope
= UUID
.fromString("3b69f979-408c-4080-b573-0ad78a315610");
30 private static final UUID uuidAfrica
= UUID
.fromString("c204c529-d8d2-458f-b939-96f0ebd2cbe8");
31 private static final UUID uuidAsia
= UUID
.fromString("7f4f4f89-3b4c-475d-929f-144109bd8457");
32 private static final UUID uuidNAmerica
= UUID
.fromString("81d8aca3-ddd7-4537-9f2b-5327c95b6e28");
33 private static final UUID uuidSAmerica
= UUID
.fromString("12b861c9-c922-498c-8b1a-62afc26d19e3");
34 private static final UUID uuidOceania
= UUID
.fromString("c57adcff-5213-45f0-a5f0-97a9f5c0f1fe");
35 private static final UUID uuidAntarctica
= UUID
.fromString("71fd9ab7-9b07-4eb6-8e54-c519aff56728");
41 public static Continent
NewInstance(){
42 return new Continent();
49 public static Continent
NewInstance(String term
, String label
, String labelAbbrev
){
50 return new Continent(term
, label
, labelAbbrev
);
59 public Continent(String term
, String label
, String labelAbbrev
) {
60 super(term
, label
, labelAbbrev
);
63 public static final Continent
getByUuid(UUID uuid
){
64 return (Continent
)findByUuid(uuid
);
67 public static final Continent
EUROPE(){
68 return getByUuid(uuidEurope
);
71 public static final Continent
AFRICA(){
72 return getByUuid(uuidAfrica
);
75 public static final Continent
ASIA(){
76 return getByUuid(uuidAsia
);
79 public static final Continent
NORTH_AMERICA(){
80 return getByUuid(uuidNAmerica
);
83 public static final Continent
ANTARCTICA(){
84 return getByUuid(uuidAntarctica
);
87 public static final Continent
SOUTH_AMERICA(){
88 return getByUuid(uuidSAmerica
);
91 public static final Continent
OCEANIA(){
92 return getByUuid(uuidOceania
);