Search in sources :

Example 1 with SBMeasurableProxy

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

Aggregations

Element (org.jdom.Element)1 BioPaxObject (org.vcell.pathway.BioPaxObject)1 GroupObject (org.vcell.pathway.GroupObject)1 SBMeasurableProxy (org.vcell.pathway.persistence.BiopaxProxy.SBMeasurableProxy)1 SBMeasurable (org.vcell.pathway.sbpax.SBMeasurable)1