Project

General

Profile

Download (913 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
 */
16
public enum PublishEnum implements IKeyLabel{
17

    
18
    Publish("Publish", "Publish"),
19
    NotPublish("NotPublish", "Don't 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
}
(12-12/16)