Project

General

Profile

Download (904 Bytes) Statistics
| Branch: | Tag: | Revision:
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
import eu.etaxonomy.taxeditor.l10n.Messages;
12

    
13
/**
14
 * @author k.luther
15
 * @since 19.11.2018
16
 *
17
 */
18
public enum PublishEnum {
19

    
20
    Publish("Publish", Messages.PublishEnum_publish),
21
    NotPublish("NotPublish", Messages.PublishFlagPreference_do_not_set),
22
    InheritFromParent("InheritFromParent", Messages.PublishFlagPreference_inherit);
23

    
24

    
25
    String label;
26
    String key;
27

    
28
    private PublishEnum(String key, String label){
29
        this.label = label;
30
        this.key = key;
31
    }
32

    
33
    public String getLabel(){
34
        return label;
35
    }
36

    
37
    public String getKey(){
38
        return key;
39
    }
40
}
(28-28/40)