private static final String featureTreeName = "Catalogo feature tree";
private static final String flatFeatureTreeName = "Catalogo flat feature tree";
-
//classification
static final UUID classificationUuid = UUID.fromString("588dd2de-7c95-42ad-8eb1-994460561b5e");
private static final String classificationName = "Mexico Eflora";
}
}
- @SuppressWarnings("unchecked")
private void createStateAreasVoc(SimpleExcelTaxonImportState<CONFIG> state) {
//voc
URI termSourceUri = null;
String label = "Mexican States";
String description = "Mexican States as used by the CONABIO Rubiaceae database";
- stateAreasVoc = OrderedTermVocabulary.NewInstance(TermType.NamedArea,
+ stateAreasVoc = OrderedTermVocabulary.NewOrderedInstance(TermType.NamedArea, NamedArea.class,
description, label, null, termSourceUri);
stateAreasVoc.setUuid(MexicoConabioTransformer.uuidMexicanStatesVoc);
Representation rep = Representation.NewInstance("Estados Méxicanos", "Estados Méxicanos", null, Language.SPANISH_CASTILIAN());
addArea(state, areaLabel, uuid, mappingLabel, null); //short cut if label and mapping label are equal
}
-
- /**
- * @param state
- * @param string
- * @param uuidaguascalientes
- */
private void addArea(SimpleExcelTaxonImportState<CONFIG> state, String areaLabel, UUID uuid, String mappingLabel, Integer id1) {
String abbrev = null;
NamedArea newArea = NamedArea.NewInstance(
private void saveNodeRecursive(MexicoEfloraImportState state, TreeNode node, TermVocabulary<Feature> featureVoc, Feature parentFeature,
TermNode<Feature> parentFeatureTreeNode, TermNode<Feature> flatFeatureTreereTreeNode) {
+
if (!node.children.isEmpty()) {
//is feature
String sep = UTF8.EN_DASH_SPATIUM.toString();
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.cdm.io.mexico;
import java.sql.ResultSet;
}
return false;
}
-}
+}
\ No newline at end of file