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