private Map<String,Modifier> modifiers = new HashMap<String,Modifier>();\r
\r
private Set<MarkerType> markerTypes = new HashSet<MarkerType>();\r
+ private Set<TermVocabulary> vocabularies = new HashSet<TermVocabulary>();\r
\r
private Set<Feature> descriptiveConcepts = new HashSet<Feature>();\r
private Set<AnnotationType> annotationTypes = new HashSet<AnnotationType>();\r
markerTypes.add(descriptiveConceptMarkerType);\r
\r
//saving of all imported data into the CDM db\r
+ saveVocabularies();\r
saveFeatures();\r
saveModifiers();\r
saveStates();\r
return success;\r
}\r
\r
+ /**\r
+ * \r
+ */\r
+ private void saveVocabularies() {\r
+ for (TermVocabulary vocabulary : vocabularies ){\r
+ getVocabularyService().save(vocabulary);\r
+ }\r
+ \r
+ }\r
+\r
private void saveAnnotationType() {\r
for (AnnotationType annotationType: annotationTypes){\r
getTermService().save(annotationType); \r
// <StateDefinition id="s1">\r
List<Element> elStateDefinitions = elStates.getChildren("StateDefinition",sddNamespace);\r
TermVocabulary<State> termVocabularyState = new TermVocabulary<State>();\r
+ \r
+ vocabularies.add(termVocabularyState);\r
+ \r
int k = 0;\r
//for each StateDefinition\r
for (Element elStateDefinition : elStateDefinitions){\r