cleanup
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / metadata / TermOrder.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 6 Feb 2019
14 *
15 */
16 public enum TermOrder implements IKeyLabel{
17
18 IdInVoc("IdInVoc", "Id in Vocabulary"),
19 Label("Label", "Label"),
20 Natural("Natural", "Natural");
21
22 private String label;
23 private String key;
24
25 private TermOrder(String key, String label){
26 this.label = label;
27 this.key = key;
28 }
29
30 @Override
31 public String getLabel(){
32 return label;
33 }
34
35 @Override
36 public String getKey(){
37 return key;
38 }
39
40 @Override
41 public String toString(){
42 return key;
43 }
44 }