Search in sources :

Example 1 with EvidenceProxy

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;
}
Also used : EvidenceProxy(org.vcell.pathway.persistence.BiopaxProxy.EvidenceProxy) Element(org.jdom.Element) Evidence(org.vcell.pathway.Evidence) GroupObject(org.vcell.pathway.GroupObject) BioPaxObject(org.vcell.pathway.BioPaxObject)

Aggregations

Element (org.jdom.Element)1 BioPaxObject (org.vcell.pathway.BioPaxObject)1 Evidence (org.vcell.pathway.Evidence)1 GroupObject (org.vcell.pathway.GroupObject)1 EvidenceProxy (org.vcell.pathway.persistence.BiopaxProxy.EvidenceProxy)1