2 * Copyright (C) 2015 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
.ext
.geo
;
11 import eu
.etaxonomy
.cdm
.model
.metadata
.IKeyLabel
;
14 * @author a.kohlbecker
17 * @deprecated the usage of this class is deprecated, please use {@link CondensedDistributionConfiguration} instead
20 public enum CondensedDistributionRecipe
implements IKeyLabel
{
23 * The recipe for creation of the condensed distribution strings
24 * as used in Euro+Med.
28 * <li>{@link http://ww2.bgbm.org/EuroPlusMed/explanations.asp}</li>
29 * <li>{@link http://dev.e-taxonomy.eu/trac/ticket/3907}</li>
32 EuroPlusMed("EuroPlusMed", "Euro + Med"),
33 FloraCuba("FloraCuba", "Flora Cuba");
38 private CondensedDistributionRecipe(String key
, String label
) {
44 public String
getLabel() {
49 public String
getKey() {
53 public CondensedDistributionConfiguration
toConfiguration(){
54 if (this == FloraCuba
){
55 return CondensedDistributionConfiguration
.NewCubaInstance();
57 return CondensedDistributionConfiguration
.NewDefaultInstance();
61 public CondensedDistributionRecipe
byKey(String key
) {
65 for (CondensedDistributionRecipe rec
: values()){
66 if (rec
.getKey().equalsIgnoreCase(key
)){