use of org.vcell.pathway.persistence.BiopaxProxy.RelationshipTypeVocabularyProxy in project vcell by virtualcell.
the class PathwayReaderBiopax3 method addObjectRelationshipTypeVocabulary.
private RelationshipTypeVocabulary addObjectRelationshipTypeVocabulary(Element element) {
if (element.getChildren().size() == 0) {
RelationshipTypeVocabularyProxy proxy = new RelationshipTypeVocabularyProxy();
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("RelationshipTypeVocabulary")) {
RelationshipTypeVocabulary thingie = addObjectRelationshipTypeVocabulary(childElement);
pathwayModel.add(thingie);
return thingie;
}
}
}
RelationshipTypeVocabulary relationshipTypeVocabulary = new RelationshipTypeVocabulary();
addAttributes(relationshipTypeVocabulary, element);
for (Object child : element.getChildren()) {
if (child instanceof Element) {
Element childElement = (Element) child;
if (!addContentControlledVocabulary(relationshipTypeVocabulary, element, childElement)) {
showUnexpected(childElement);
}
}
}
pathwayModel.add(relationshipTypeVocabulary);
return relationshipTypeVocabulary;
}
Aggregations