Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 438edee8 authored by Achraf Achkari's avatar Achraf Achkari
Browse files

Fix dependencies issue

parent 2999473f
No related branches found
No related tags found
2 merge requests!2Release GOC,!1Release GOC
Pipeline #320009 failed
......@@ -14,5 +14,4 @@
# /src/test/resources/
/src/test/resources/out
/src/test/java/net/ihe/gazelle/tempgen/ehdsi/scripts/EHDSIFriendlyTransformer.java
/src/test/java/net/ihe/gazelle/tempgen/ignoredTests/
package net.ihe.gazelle.tempgen.ehdsi.scripts;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.ArrayList;
import javax.xml.bind.JAXBException;
import net.ihe.gazelle.tempapi.visitor.DecorVisitor;
import net.ihe.gazelle.tempmodel.org.decor.art.model.Attribute;
import net.ihe.gazelle.tempmodel.org.decor.art.model.Decor;
import net.ihe.gazelle.tempmodel.org.decor.art.model.RuleDefinition;
import net.ihe.gazelle.tempmodel.org.decor.art.utils.DecorMarshaller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class EHDSIFriendlyTransformer {
public final static String ROOT = "1.3.6.1.4.1.12559.11.10.1.3.1.42";
private static Logger log = LoggerFactory.getLogger(VocabularyFriendlyProcessorPivot.class);
public static ArrayList<Object> ml_objectsWithVocabularyToDelete = new ArrayList<>();
public static void main(String[] args) throws FileNotFoundException, JAXBException {
Decor dec = DecorMarshaller.loadDecor("/your/path/for/bbr.xml");
DecorVisitor.INSTANCE.visitAndProcess(dec, new VSFriendlyProvider());
for (Object lo_vocabularyParent : ml_objectsWithVocabularyToDelete){
if (lo_vocabularyParent instanceof RuleDefinition){
if (((RuleDefinition) lo_vocabularyParent).getVocabulary() != null &&
!((RuleDefinition) lo_vocabularyParent).getVocabulary().isEmpty()){
((RuleDefinition) lo_vocabularyParent).getVocabulary()
.clear();
}
} else if (lo_vocabularyParent instanceof Attribute){
if (((Attribute) lo_vocabularyParent).getVocabulary() != null &&
!((Attribute) lo_vocabularyParent).getVocabulary().isEmpty()){
((Attribute) lo_vocabularyParent).getVocabulary()
.clear();
}
} else {
log.error("Unchecked type of parent element : " + lo_vocabularyParent.getClass());
}
}
DecorMarshaller.marshallDecor(dec, new FileOutputStream("/your/path/for/output/bbr-output.xml"));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment