Merge branch 'release/5.8.0'
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / metadata / PublishEnum.java
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.cdm.model.metadata;
10
11 /**
12 * @author k.luther
13 * @since 19.11.2018
14 *
15 */
16 public enum PublishEnum implements IKeyLabel{
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 @Override
32 public String getLabel(){
33 return label;
34 }
35
36 @Override
37 public String getKey(){
38 return key;
39 }
40
41 @Override
42 public String toString(){
43 return key;
44 }
45 }