Project

General

Profile

Download (1.23 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2015 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10
package eu.etaxonomy.cdm.ext.geo;
11

    
12
/**
13
 * @author a.kohlbecker
14
 * @date Jun 24, 2015
15
 *
16
 */
17
public enum CondensedDistributionRecipe {
18

    
19
    /**
20
     * The recipe for creation of the condensed distribution strings
21
     * as used in Euro+Med.
22
     *
23
     * For reference see:
24
     * <ul>
25
     *   <li>{@link http://ww2.bgbm.org/EuroPlusMed/explanations.asp}</li>
26
     *   <li>{@link http://dev.e-taxonomy.eu/trac/ticket/3907}</li>
27
     * </ul>
28
     */
29
    EuroPlusMed(EuroPlusMedCondensedDistributionComposer.class),
30
    FloraCuba(FloraCubaCondensedDistributionComposer.class);
31

    
32
    Class<? extends ICondensedDistributionComposer> implementation;
33

    
34
    CondensedDistributionRecipe(Class<? extends ICondensedDistributionComposer> implementation) {
35
        this.implementation = implementation;
36
    }
37

    
38
    public ICondensedDistributionComposer newCondensedDistributionComposerInstance() throws InstantiationException, IllegalAccessException {
39
        return implementation.newInstance();
40
    }
41
}
(1-1/11)