Revision 79b051c8
Added by Andreas Müller almost 12 years ago
XperCdmIntegration/src/main/java/eu/etaxonomy/cdm/io/xper/CdmXperAdapter.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.cdm.io.xper; |
2 | 2 |
|
3 |
import java.net.URI; |
|
3 | 4 |
import java.util.HashMap; |
4 | 5 |
import java.util.HashSet; |
5 | 6 |
import java.util.List; |
... | ... | |
589 | 590 |
String vocLabel = "Vocabulary for feature " + feature.getLabel(); |
590 | 591 |
String vocDescription = vocLabel + ". Automatically created by Xper."; |
591 | 592 |
String vocAbbrev = null; |
592 |
String termSourceUri = null;
|
|
593 |
URI termSourceUri = null;
|
|
593 | 594 |
voc = TermVocabulary.NewInstance(vocDescription, vocLabel, vocAbbrev, termSourceUri); |
594 | 595 |
}else if (numberOfVocs == 1){ |
595 | 596 |
voc = feature.getSupportedCategoricalEnumerations().iterator().next(); |
... | ... | |
622 | 623 |
String vocDescription = null; |
623 | 624 |
String vocLabel = "Vocabulary for feature " + label; |
624 | 625 |
String vocAbbrev = null; |
625 |
String termSourceUri = null;
|
|
626 |
URI termSourceUri = null;
|
|
626 | 627 |
TermVocabulary<State> voc = TermVocabulary.NewInstance(vocDescription, vocLabel, vocAbbrev, termSourceUri); |
627 | 628 |
for (Mode mode:variable.getModes()){ |
628 | 629 |
saveNewModeToVoc(getTermService(), voc, mode); |
Also available in: Unified diff
made termsourceuri a real URI (#2313)