Search in sources :

Example 1 with SequenceSiteProxy

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

the class PathwayReaderBiopax3 method addObjectSequenceSite.

private SequenceSite addObjectSequenceSite(Element element) {
    if (element.getChildren().size() == 0) {
        // if there are no children it must be a resource inside another object
        SequenceSiteProxy proxy = new SequenceSiteProxy();
        addAttributes(proxy, element);
        pathwayModel.add(proxy);
        return proxy;
    }
    SequenceSite sequenceSite = new SequenceSite();
    addAttributes(sequenceSite, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            Element childElement = (Element) child;
            if (!addContentSequenceSite(sequenceSite, element, childElement)) {
                showUnexpected(childElement);
            }
        }
    }
    pathwayModel.add(sequenceSite);
    return sequenceSite;
}
Also used : SequenceSite(org.vcell.pathway.SequenceSite) Element(org.jdom.Element) SequenceSiteProxy(org.vcell.pathway.persistence.BiopaxProxy.SequenceSiteProxy) GroupObject(org.vcell.pathway.GroupObject) BioPaxObject(org.vcell.pathway.BioPaxObject)

Aggregations

Element (org.jdom.Element)1 BioPaxObject (org.vcell.pathway.BioPaxObject)1 GroupObject (org.vcell.pathway.GroupObject)1 SequenceSite (org.vcell.pathway.SequenceSite)1 SequenceSiteProxy (org.vcell.pathway.persistence.BiopaxProxy.SequenceSiteProxy)1