Revision 9c810b9f
Added by Andreas Müller over 12 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/markup/MarkupTransformer.java | ||
---|---|---|
29 | 29 |
@SuppressWarnings("unused") |
30 | 30 |
private static final Logger logger = Logger.getLogger(MarkupTransformer.class); |
31 | 31 |
|
32 |
|
|
33 |
|
|
34 | 32 |
//feature uuids |
35 | 33 |
|
34 |
public static final UUID uuidHabit = UUID.fromString("03487108-173a-4335-92be-05076af29155"); |
|
36 | 35 |
public static final UUID uuidHabitat = UUID.fromString("fb16929f-bc9c-456f-9d40-dec987b36438"); |
37 | 36 |
public static final UUID uuidHabitatEcology = UUID.fromString("9fdc4663-4d56-47d0-90b5-c0bf251bafbb"); |
38 | 37 |
|
... | ... | |
63 | 62 |
public static final UUID uuidBranchlets = UUID.fromString("e63af3b4-aaff-4b4d-a8fe-3b13b79974c8"); |
64 | 63 |
public static final UUID uuidLifeform = UUID.fromString("db9228d3-8bbf-4460-abfe-0b1326c82f8e"); |
65 | 64 |
public static final UUID uuidInflorescences = UUID.fromString("c476f5fb-dc06-4408-af36-f48e625f5767"); |
65 |
public static final UUID uuidMaleInflorescences = UUID.fromString("374fa3fe-70c2-4ec9-a611-97c62288aeba"); |
|
66 |
public static final UUID uuidFemaleInflorescences = UUID.fromString("179af784-850c-4187-ba1f-cdc9f68970ef"); |
|
66 | 67 |
public static final UUID uuidFlowers = UUID.fromString("7fd80f15-9abf-44e7-b55a-be264b9dd7ac"); |
67 | 68 |
public static final UUID uuidSepals = UUID.fromString("d6867f7c-68c9-4b7c-9094-862bdfe1e064"); |
68 | 69 |
public static final UUID uuidOuterSepals = UUID.fromString("e95b65f8-656f-4770-b716-2824cb4b54b6"); |
... | ... | |
146 | 147 |
|
147 | 148 |
|
148 | 149 |
//extension type uuids |
149 |
public static final UUID uuidTitle = UUID.fromString("5d9ca987-81f1-4d6c-b06a-eaa8311ca249"); |
|
150 |
public static final UUID uuidTaxonTitle = UUID.fromString("5d9ca987-81f1-4d6c-b06a-eaa8311ca249"); |
|
151 |
public static final UUID uuidWriter = UUID.fromString("43f988cb-bc53-4324-a702-c8f920656975"); |
|
150 | 152 |
|
151 | 153 |
//marker type uuid |
152 |
public static final UUID uuidExcludedTaxon = UUID.fromString("e729a22d-8c94-4859-9f91-3e3ae212c91d"); |
|
154 |
// public static final UUID uuidExcludedTaxon = UUID.fromString("e729a22d-8c94-4859-9f91-3e3ae212c91d");
|
|
153 | 155 |
public static final UUID uuidIncompleteTaxon = UUID.fromString("cb34d525-de64-4569-b277-3429ec49a09f"); |
154 | 156 |
|
155 | 157 |
|
... | ... | |
160 | 162 |
@Override |
161 | 163 |
public Feature getFeatureByKey(String key) throws UndefinedTransformerMethodException { |
162 | 164 |
if (CdmUtils.isEmpty(key)){return null; |
165 |
}else if (key.equalsIgnoreCase("anatomy")){return Feature.ANATOMY(); |
|
166 |
}else if (key.equalsIgnoreCase("description")){return Feature.DESCRIPTION(); |
|
163 | 167 |
}else if (key.equalsIgnoreCase("distribution")){return Feature.DISTRIBUTION(); |
164 | 168 |
}else if (key.equalsIgnoreCase("habitatecology")){return Feature.ECOLOGY(); |
165 | 169 |
}else{ |
... | ... | |
175 | 179 |
if (CdmUtils.isEmpty(key)){return null; |
176 | 180 |
|
177 | 181 |
}else if (key.equalsIgnoreCase("Chromosomes")){return uuidChromosomes; |
178 |
|
|
182 |
}else if (key.equalsIgnoreCase("habit")){return uuidHabit; |
|
179 | 183 |
}else if (key.equalsIgnoreCase("Habitat")){return uuidHabitat; |
180 | 184 |
}else if (key.equalsIgnoreCase("Habitat & Ecology")){return uuidHabitatEcology; |
181 | 185 |
}else if (key.equalsIgnoreCase("Leaflets")){return uuidLeaflets; |
... | ... | |
215 | 219 |
}else if (key.equalsIgnoreCase("Fruit")){return uuidFruit; |
216 | 220 |
}else if (key.equalsIgnoreCase("Branch")){return uuidBranch; |
217 | 221 |
}else if (key.equalsIgnoreCase("Inflorescence")){return uuidInflorescence; |
222 |
}else if (key.equalsIgnoreCase("male inflorescences")){return uuidMaleInflorescences; |
|
223 |
}else if (key.equalsIgnoreCase("female inflorescences")){return uuidFemaleInflorescences; |
|
224 |
|
|
218 | 225 |
}else if (key.equalsIgnoreCase("Calyx")){return uuidCalyx; |
219 | 226 |
}else if (key.equalsIgnoreCase("Seedling")){return uuidSeedling; |
220 | 227 |
}else if (key.equalsIgnoreCase("Staminodes")){return uuidStaminodes; |
... | ... | |
283 | 290 |
}else if (key.equalsIgnoreCase("Fruits and embryology")){return uuidFruitsAndEmbryology; |
284 | 291 |
}else if (key.equalsIgnoreCase("Dispersal")){return uuidDispersal; |
285 | 292 |
}else if (key.equalsIgnoreCase("Phytochemistry")){return uuidPhytochemistry; |
293 |
}else if (key.equalsIgnoreCase("phytochemo")){return uuidPhytochemistry; |
|
286 | 294 |
}else if (key.equalsIgnoreCase("Fossils")){return uuidFossils; |
287 | 295 |
}else if (key.equalsIgnoreCase("Morphology and anatomy")){return uuidMorphologyAndAnatomy; |
288 | 296 |
// }else if (key.equalsIgnoreCase("Inflorescence")){return uuidInflorescence; |
... | ... | |
313 | 321 |
@Override |
314 | 322 |
public UUID getMarkerTypeUuid(String key) throws UndefinedTransformerMethodException { |
315 | 323 |
if (CdmUtils.isEmpty(key)){return null; |
316 |
}else if (key.equalsIgnoreCase("excluded")){return uuidExcludedTaxon; |
|
317 |
}else if (key.equalsIgnoreCase("EXCLUDED SPECIES, OF UNCERTAIN AFHNITIES PTELEOCARPA")){return uuidExcludedTaxon; |
|
318 |
}else if (key.equalsIgnoreCase("EXCLUDED GENUS, OF UNCERTAIN AFHNITIES PTELEOCARPA")){return uuidExcludedTaxon; |
|
319 | 324 |
}else if (key.equalsIgnoreCase("INCOMPLETELY KNOWN SPECIES")){return uuidIncompleteTaxon; |
320 | 325 |
}else if (key.equalsIgnoreCase("INSUFICIENTLY KNOWN")){return uuidIncompleteTaxon; |
321 | 326 |
}else if (key.equalsIgnoreCase("INSUFFICIENTLY KNOWN")){return uuidIncompleteTaxon; |
Also available in: Unified diff
improvements to markup import