1
|
/**
|
2
|
* Copyright (C) 2015 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.ext.geo;
|
10
|
|
11
|
/**
|
12
|
* @author a.kohlbecker
|
13
|
* @since Jun 24, 2015
|
14
|
*
|
15
|
*/
|
16
|
public enum CondensedDistributionRecipe {
|
17
|
|
18
|
/**
|
19
|
* The recipe for creation of the condensed distribution strings
|
20
|
* as used in Euro+Med.
|
21
|
*
|
22
|
* For reference see:
|
23
|
* <ul>
|
24
|
* <li>{@link http://ww2.bgbm.org/EuroPlusMed/explanations.asp}</li>
|
25
|
* <li>{@link https://dev.e-taxonomy.eu/redmine/issues/3907}</li>
|
26
|
* </ul>
|
27
|
*/
|
28
|
EuroPlusMed(EuroPlusMedCondensedDistributionComposer.class),
|
29
|
FloraCuba(FloraCubaCondensedDistributionComposer.class);
|
30
|
|
31
|
Class<? extends ICondensedDistributionComposer> implementation;
|
32
|
|
33
|
CondensedDistributionRecipe(Class<? extends ICondensedDistributionComposer> implementation) {
|
34
|
this.implementation = implementation;
|
35
|
}
|
36
|
|
37
|
public ICondensedDistributionComposer newCondensedDistributionComposerInstance() throws InstantiationException, IllegalAccessException {
|
38
|
return implementation.newInstance();
|
39
|
}
|
40
|
}
|