Search in sources :

Example 1 with ConversionImpl

use of org.vcell.pathway.ConversionImpl in project vcell by virtualcell.

the class PathwayReaderBiopax3 method addObjectConversion.

private Conversion addObjectConversion(Element conversionElement) {
    if (conversionElement.getChildren().size() == 0) {
        ConversionProxy proxy = new ConversionProxy();
        addAttributes(proxy, conversionElement);
        pathwayModel.add(proxy);
        return proxy;
    }
    Conversion conversion = new ConversionImpl();
    addAttributes(conversion, conversionElement);
    for (Object child : conversionElement.getChildren()) {
        if (child instanceof Element) {
            if (!addContentConversion(conversion, conversionElement, (Element) child)) {
                showUnexpected((Element) child);
            }
        }
    }
    pathwayModel.add(conversion);
    return conversion;
}
Also used : Element(org.jdom.Element) ConversionImpl(org.vcell.pathway.ConversionImpl) GroupObject(org.vcell.pathway.GroupObject) BioPaxObject(org.vcell.pathway.BioPaxObject) ConversionProxy(org.vcell.pathway.persistence.BiopaxProxy.ConversionProxy) Conversion(org.vcell.pathway.Conversion)

Aggregations

Element (org.jdom.Element)1 BioPaxObject (org.vcell.pathway.BioPaxObject)1 Conversion (org.vcell.pathway.Conversion)1 ConversionImpl (org.vcell.pathway.ConversionImpl)1 GroupObject (org.vcell.pathway.GroupObject)1 ConversionProxy (org.vcell.pathway.persistence.BiopaxProxy.ConversionProxy)1