Project

General

Profile

« Previous | Next » 

Revision f7076dd0

Added by Andreas Müller about 8 years ago

Symbols for Cuba Condensed Distribution String added

View differences:

cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/geo/FloraCubaCondensedDistributionComposer.java
29 29
import eu.etaxonomy.cdm.model.location.NamedArea;
30 30

  
31 31
/**
32
 * @author a.kohlbecker
33
 * @date Jun 24, 2015
32
 * @author a.mueller
33
 * @date Apr 05, 2016
34 34
 *
35 35
 */
36 36
public class FloraCubaCondensedDistributionComposer implements ICondensedDistributionComposer {
37 37

  
38
    @SuppressWarnings("unused")
38 39
    private static final Logger logger = Logger.getLogger(FloraCubaCondensedDistributionComposer.class);
39 40

  
40 41
    private final CondensedDistribution condensedDistribution;
......
58 59

  
59 60
        // Lu native (incl. archaeophytes) TODO status archaeophytes?
60 61
        statusSymbols.put(PresenceAbsenceTerm.NATIVE().getUuid(), "");
61
        statusSymbols.put(PresenceAbsenceTerm.NATIVE_FORMERLY_NATIVE().getUuid(), "");
62
//        statusSymbols.put(PresenceAbsenceTerm.NATIVE_FORMERLY_NATIVE().getUuid(), "");
62 63

  
63 64
        // ?Lu doubtfully present (U+3F QUESTION MARK)
64
        statusSymbols.put(PresenceAbsenceTerm.INTRODUCED_PRESENCE_QUESTIONABLE().getUuid(), "?");
65
//        statusSymbols.put(PresenceAbsenceTerm.INTRODUCED_PRESENCE_QUESTIONABLE().getUuid(), "?");
65 66
        statusSymbols.put(PresenceAbsenceTerm.NATIVE_PRESENCE_QUESTIONABLE().getUuid(), "?");
66
        statusSymbols.put(PresenceAbsenceTerm.PRESENT_DOUBTFULLY().getUuid(), "?");
67
//        statusSymbols.put(PresenceAbsenceTerm.PRESENT_DOUBTFULLY().getUuid(), "?");
67 68

  
68 69
        // dLu doubtfully native
69 70
        statusSymbols.put(PresenceAbsenceTerm.NATIVE_DOUBTFULLY_NATIVE().getUuid(), "d");
70 71

  
71 72
        // -Lu absent but reported in error (U+2D HYPHEN-MINUS)
72
        statusSymbols.put(PresenceAbsenceTerm.INTRODUCED_REPORTED_IN_ERROR().getUuid(), "-");
73
//        statusSymbols.put(PresenceAbsenceTerm.INTRODUCED_REPORTED_IN_ERROR().getUuid(), "-");
73 74
        statusSymbols.put(PresenceAbsenceTerm.NATIVE_REPORTED_IN_ERROR().getUuid(), "-");
74 75
        statusSymbols.put(REPORTED_IN_ERROR_UUID, "-");
75 76

  
76
        // †Lu (presumably) extinct (U+2020 DAGGER)
77
        // no such status in database!!!
78

  
79
        // [Lu] introduced (casual or naturalized) =  introduced, introduced: naturalized
80
        statusSymbols.put(PresenceAbsenceTerm.INTRODUCED().getUuid(), "");
81

  
82 77
        // [aLu] casual alien = introduced: adventitious (casual)
83 78
        statusSymbols.put(PresenceAbsenceTerm.INTRODUCED_ADVENTITIOUS().getUuid(), "a");
84 79

  
85 80
        // [cLu] cultivated
86 81
        statusSymbols.put(PresenceAbsenceTerm.CULTIVATED() .getUuid(), "c");
87
        statusSymbols.put(PresenceAbsenceTerm.INTRODUCED_CULTIVATED().getUuid(), "c");
82
//        statusSymbols.put(PresenceAbsenceTerm.INTRODUCED_CULTIVATED().getUuid(), "c");
88 83

  
89 84
        // [nLu] naturalized
90 85
        statusSymbols.put(PresenceAbsenceTerm.NATURALISED().getUuid(), "n");
91
        statusSymbols.put(PresenceAbsenceTerm.INTRODUCED_NATURALIZED().getUuid(), "n");
86
//        statusSymbols.put(PresenceAbsenceTerm.INTRODUCED_NATURALIZED().getUuid(), "n");
87

  
88
        statusSymbols.put(PresenceAbsenceTerm.CULTIVATED_PRESENCE_QUESTIONABLE().getUuid(), "?c");
89
        statusSymbols.put(PresenceAbsenceTerm.CULTIVATED_REPORTED_IN_ERROR().getUuid(), "-c");
90

  
91

  
92

  
93
        //Cuba specific
94
        //occasionally cultivated
95
        statusSymbols.put(UUID.fromString("936c3f9a-6099-4322-9792-0a72c6c2ce25"), "(c)");
96
        //endemic, doubtfully present
97
        statusSymbols.put(UUID.fromString("5f954f08-267a-4928-b073-12328f74c187"), "?e");
98
        //non-native and doubtfully naturalised
99
        statusSymbols.put(UUID.fromString("a1e26234-831e-4190-9fe3-011aca09ddba"), "p");
100
        //rare casual
101
        statusSymbols.put(UUID.fromString("8914ce0d-7d31-4c88-8317-985f2b3a493b"), "(a)");
102
        //?non-native and doubtfully naturalised
103
        statusSymbols.put(UUID.fromString("9e0b413b-5a68-4e5b-91f2-227b4f832466"), "?p");
104
        //?adventive (casual) alien
105
        statusSymbols.put(UUID.fromString("c42ca644-1773-4230-a2ee-328a5d4a21ab"), "?a");
106
        //endemic, reported in error
107
        statusSymbols.put(UUID.fromString("679b215d-c231-4ee2-ae12-3ffc3dd528ad"), "-e");
108
        //naturalised, reported in error
109
        statusSymbols.put(UUID.fromString("8d918a37-3add-4e1c-a233-c37dbee209aa"), "-n");
110
        //non-native and doubtfully naturalised, reported in error
111
        statusSymbols.put(UUID.fromString("b9153d90-9e31-465a-a28c-79077a8ed4c2"), "-p");
112
        //adventive alien , reported in error
113
        statusSymbols.put(UUID.fromString("9b910b7b-43e3-4260-961c-6063b11cb7dc"), "-a");
114

  
115

  
116

  
117

  
92 118

  
93 119
        foreignStatusUuids = new HashSet<UUID>();
94 120
        foreignStatusUuids.add(PresenceAbsenceTerm.INTRODUCED().getUuid());
......
188 214
            }
189 215

  
190 216
        }
191
        //5. order the condensedDistributions alphabetically
192
        // FIXME
217
//        //5. order the condensedDistributions alphabetically
218
//        // FIXME
193 219
        condensedDistribution.sortForeign();
194 220
        condensedDistribution.sortIndigenous();
195 221

  

Also available in: Unified diff