ref #7849: remove OVERRIDE constants from IPreferenceKeys and handle it by method
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / PublishEnum.java
1 /**
2 * Copyright (C) 2018 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 /**
12 * @author k.luther
13 * @since 19.11.2018
14 *
15 */
16 public enum PublishEnum {
17
18 Publish("Publish", "Publish"),
19 NotPublish("NotPublish", "Not Publish"),
20 InheritFromParent("InheritFromParent", "Inherit from Parent");
21
22
23 String label;
24 String key;
25
26 private PublishEnum(String key, String label){
27 this.label = label;
28 this.key = key;
29 }
30
31 public String getLabel(){
32 return label;
33 }
34
35 public String getKey(){
36 return key;
37 }
38 }