use of org.vcell.pathway.persistence.BiopaxProxy.SBMeasurableProxy in project vcell by virtualcell.
the class PathwayReaderBiopax3 method addObjectSBMeasurable.
private SBMeasurable addObjectSBMeasurable(Element element) {
if (element.getChildren().size() == 0) {
SBMeasurableProxy proxy = new SBMeasurableProxy();
addAttributes(proxy, element);
pathwayModel.add(proxy);
return proxy;
}
SBMeasurable sbSubEntity = new SBMeasurable();
addAttributes(sbSubEntity, element);
for (Object child : element.getChildren()) {
if (child instanceof Element) {
Element childElement = (Element) child;
if (!addContentSBMeasurable(sbSubEntity, element, childElement)) {
showUnexpected(childElement);
}
}
}
pathwayModel.add(sbSubEntity);
return sbSubEntity;
}
Aggregations