Project

General

Profile

Download (955 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 6 Feb 2019
14
 *
15
 */
16
public enum TermOrder implements IKeyLabel{
17

    
18
    IdInVoc("IdInVoc", "Id in Vocabulary"),
19
    Label("Label", "Label"),
20
    Symbol1("Symbol1", "Symbol 1"),
21
    Symbol2("Symbol2", "Symbol 2"),
22
    Natural("Natural", "Natural");
23

    
24
    private String label;
25
    private String key;
26

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

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

    
37
    @Override
38
    public String getKey(){
39
        return key;
40
    }
41

    
42
    @Override
43
    public String toString(){
44
        return key;
45
    }
46
}
(17-17/18)