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
.common
;
13 import org
.apache
.log4j
.Logger
;
15 import eu
.etaxonomy
.cdm
.model
.taxon
.SynonymRelationshipType
;
19 import javax
.persistence
.*;
22 * Marker types similar to dynamically defined attributes. These content types
23 * like "IS_DOUBTFUL", "COMPLETE" or specific local flags.
26 * @created 08-Nov-2007 13:06:33
29 public class MarkerType
extends DefinedTermBase
{
30 static Logger logger
= Logger
.getLogger(MarkerType
.class);
32 private static final UUID uuidImported
= UUID
.fromString("96878790-4ceb-42a2-9738-a2242079b679");
33 private static final UUID uuidToBeChecked
= UUID
.fromString("34204192-b41d-4857-a1d4-28992bef2a2a");
34 private static final UUID uuidIsDoubtful
= UUID
.fromString("b51325c8-05fe-421a-832b-d86fc249ef6e");
35 private static final UUID uuidComplete
= UUID
.fromString("b4b1b2ab-89a8-4ce6-8110-d60b8b1bc433");
37 public static MarkerType
NewInstance(String term
, String label
){
38 return new MarkerType(term
, label
);
55 protected MarkerType(String term
, String label
) {
60 public static final MarkerType
getByUuid(UUID uuid
){
61 return (MarkerType
) findByUuid(uuid
);
65 public static final MarkerType
IMPORTED(){
66 return getByUuid(uuidImported
);
69 public static final MarkerType
TO_BE_CHECKED(){
70 return getByUuid(uuidToBeChecked
);
73 public static final MarkerType
IS_DOUBTFUL(){
74 return getByUuid(uuidIsDoubtful
);
77 public static final MarkerType
COMPLETE(){
78 return getByUuid(uuidComplete
);