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
.description
;
12 import javax
.persistence
.Transient
;
13 import javax
.xml
.bind
.annotation
.XmlEnum
;
14 import javax
.xml
.bind
.annotation
.XmlEnumValue
;
16 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
17 import eu
.etaxonomy
.cdm
.model
.term
.TermTree
;
20 * The role of the descriptive system of type {@link TermTree}.<BR>
21 * A descriptive systeme may play different roles within a working set.
25 * <ul>Interactive Identification</ul>
26 * <ul>Natural Language Reporting</ul>
28 * <ul>Description Editing</ul>
29 * <ul>Terminology Reporting</ul>
33 * Compare SDD: .../CharacterTree/DesignedFor/Role
39 public enum DescriptiveSystemRole
{
40 //0 ; if default is set, this descriptive system is taken for all purpose where no more specific
42 @XmlEnumValue("Default")
44 //1 ; used for interactive keys
45 @XmlEnumValue("InteractiveIdentification")
46 InteractiveIdentification("Interactive Identification"),
47 //2 ; used for natural language reporting
48 @XmlEnumValue("NaturalLanguageReporting")
49 NaturalLanguageReporting("Natural Language Reporting"),
50 //3 ; used for fitering
51 @XmlEnumValue("Filtering")
52 Filtering("Filtering"),
53 //4 ; used for editing descriptions
54 @XmlEnumValue("DescriptionEditing")
55 DescriptionEditing("Description Editing"),
56 //5 ; used for reporting of the descriptive terminology
57 @XmlEnumValue("TerminologyReporting")
58 TerminologyReporting("Terminology Reporting"),
59 //6 ; used for management
60 @XmlEnumValue("Management")
61 Management("Management"),
64 private String readableString
;
66 private DescriptiveSystemRole(String readableString
){
67 this.readableString
= readableString
;
71 public String
getMessage(){
72 return getMessage(Language
.DEFAULT());
74 public String
getMessage(Language language
){
75 //TODO make multi-lingual
76 return readableString
;