use of org.vcell.pathway.persistence.BiopaxProxy.SBVocabularyProxy in project vcell by virtualcell.
the class PathwayReaderBiopax3 method addObjectSBVocabulary.
private SBVocabulary addObjectSBVocabulary(Element element) {
if (element.getChildren().size() == 0) {
SBVocabularyProxy proxy = new SBVocabularyProxy();
addAttributes(proxy, element);
pathwayModel.add(proxy);
return proxy;
}
for (Object child : element.getChildren()) {
if (child instanceof Element) {
Element childElement = (Element) child;
if (childElement.getName().equals("SBVocabulary")) {
SBVocabulary thingie = addObjectSBVocabulary(childElement);
pathwayModel.add(thingie);
return thingie;
}
}
}
SBVocabulary sbVocabulary = new SBVocabulary();
addAttributes(sbVocabulary, element);
for (Object child : element.getChildren()) {
if (child instanceof Element) {
Element childElement = (Element) child;
if (!addContentControlledVocabulary(sbVocabulary, element, childElement)) {
showUnexpected(childElement);
}
}
}
pathwayModel.add(sbVocabulary);
return sbVocabulary;
}
Aggregations