1
|
/**
|
2
|
* Copyright (C) 2019 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
|
package eu.etaxonomy.taxeditor.preference;
|
10
|
|
11
|
import eu.etaxonomy.cdm.model.metadata.IKeyLabel;
|
12
|
|
13
|
/**
|
14
|
* @author k.luther
|
15
|
* @since 05.06.2019
|
16
|
*
|
17
|
*/
|
18
|
public enum LocalOrDefaultEnum implements IKeyLabel{
|
19
|
Local("Local", "Use local settings"),
|
20
|
Database("NotAllowOverride", "Do not allow override"),
|
21
|
Default("Default", "Use default settings"),
|
22
|
AllowOverride("AllowOverride", "Allow override");
|
23
|
|
24
|
|
25
|
String label;
|
26
|
String key;
|
27
|
|
28
|
private LocalOrDefaultEnum(String key, String label){
|
29
|
this.label = label;
|
30
|
this.key = key;
|
31
|
}
|
32
|
|
33
|
@Override
|
34
|
public String getLabel(){
|
35
|
return label;
|
36
|
}
|
37
|
|
38
|
@Override
|
39
|
public String getKey(){
|
40
|
return key;
|
41
|
}
|
42
|
}
|