use of org.vcell.pathway.persistence.BiopaxProxy.SequenceSiteProxy in project vcell by virtualcell.
the class PathwayReaderBiopax3 method addObjectSequenceSite.
private SequenceSite addObjectSequenceSite(Element element) {
if (element.getChildren().size() == 0) {
// if there are no children it must be a resource inside another object
SequenceSiteProxy proxy = new SequenceSiteProxy();
addAttributes(proxy, element);
pathwayModel.add(proxy);
return proxy;
}
SequenceSite sequenceSite = new SequenceSite();
addAttributes(sequenceSite, element);
for (Object child : element.getChildren()) {
if (child instanceof Element) {
Element childElement = (Element) child;
if (!addContentSequenceSite(sequenceSite, element, childElement)) {
showUnexpected(childElement);
}
}
}
pathwayModel.add(sequenceSite);
return sequenceSite;
}
Aggregations