2 * Copyright (C) 2019 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.model
.metadata
;
15 public enum NamedAreaSearchField
implements IKeyLabel
{
17 IDInVocabulary("idInVocabulary", "ID in vocabulary"),
18 Symbol1("symbol1", "First symbol"),
19 Symbol2("symbol2", "Second symbol"),
20 NoAbbrev("titleCache", "Title cache");
25 private NamedAreaSearchField(String key
, String label
){
31 public String
getLabel() {
36 public String
getKey() {
40 public static NamedAreaSearchField
byKey(String key
){
41 for (NamedAreaSearchField searchField
: values()){
42 if (searchField
.key
.equals(key
)){
46 throw new IllegalArgumentException();