Search in sources :

Example 1 with SBStateProxy

use of org.vcell.pathway.persistence.BiopaxProxy.SBStateProxy in project vcell by virtualcell.

the class PathwayReaderBiopax3 method addObjectSBState.

private SBState addObjectSBState(Element element) {
    if (element.getChildren().size() == 0) {
        SBStateProxy proxy = new SBStateProxy();
        addAttributes(proxy, element);
        pathwayModel.add(proxy);
        return proxy;
    }
    SBState sbState = new SBState();
    addAttributes(sbState, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            Element childElement = (Element) child;
            if (!addContentSBState(sbState, element, childElement)) {
                showUnexpected(childElement);
            }
        }
    }
    pathwayModel.add(sbState);
    return sbState;
}
Also used : SBStateProxy(org.vcell.pathway.persistence.BiopaxProxy.SBStateProxy) Element(org.jdom.Element) GroupObject(org.vcell.pathway.GroupObject) BioPaxObject(org.vcell.pathway.BioPaxObject) SBState(org.vcell.pathway.sbpax.SBState)

Aggregations

Element (org.jdom.Element)1 BioPaxObject (org.vcell.pathway.BioPaxObject)1 GroupObject (org.vcell.pathway.GroupObject)1 SBStateProxy (org.vcell.pathway.persistence.BiopaxProxy.SBStateProxy)1 SBState (org.vcell.pathway.sbpax.SBState)1