Project

General

Profile

Download (925 Bytes) Statistics
| Branch: | Tag: | Revision:
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
public enum PublishEnum implements IKeyLabel{
16

    
17
    Publish("Publish", "Publish"),
18
    NotPublish("NotPublish", "Don't publish"),
19
    InheritFromParent("InheritFromParent", "Inherit from parent");
20

    
21
    private String label;
22
    private String key;
23

    
24
    private PublishEnum(String key, String label){
25
        this.label = label;
26
        this.key = key;
27
    }
28

    
29
    @Override
30
    public String getLabel(){
31
        return label;
32
    }
33

    
34
    @Override
35
    public String getKey(){
36
        return key;
37
    }
38

    
39
    @Override
40
    public String toString(){
41
        return key;
42
    }
43
}
(12-12/19)