Search in sources :

Example 1 with TemplateReactionRegulation

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

the class PathwayReaderBiopax3 method addObjectTemplateReactionRegulation.

private TemplateReactionRegulation addObjectTemplateReactionRegulation(Element element) {
    TemplateReactionRegulation templateReactionRegulation = new TemplateReactionRegulation();
    addAttributes(templateReactionRegulation, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            if (!addContentTemplateReactionRegulation(templateReactionRegulation, element, (Element) child)) {
                showUnexpected((Element) child);
            }
        }
    }
    pathwayModel.add(templateReactionRegulation);
    return templateReactionRegulation;
}
Also used : TemplateReactionRegulation(org.vcell.pathway.TemplateReactionRegulation) Element(org.jdom.Element) GroupObject(org.vcell.pathway.GroupObject) BioPaxObject(org.vcell.pathway.BioPaxObject)

Example 2 with TemplateReactionRegulation

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

the class PathwayReader method addObjectTemplateReactionRegulation.

private TemplateReactionRegulation addObjectTemplateReactionRegulation(Element element) {
    TemplateReactionRegulation templateReactionRegulation = new TemplateReactionRegulation();
    addAttributes(templateReactionRegulation, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            if (!addContentTemplateReactionRegulation(templateReactionRegulation, element, (Element) child)) {
                showUnexpected((Element) child, templateReactionRegulation);
            }
        }
    }
    pathwayModel.add(templateReactionRegulation);
    return templateReactionRegulation;
}
Also used : TemplateReactionRegulation(org.vcell.pathway.TemplateReactionRegulation) Element(org.jdom.Element) BioPaxObject(org.vcell.pathway.BioPaxObject)

Example 3 with TemplateReactionRegulation

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

the class PathwayProducerBiopax3 method addContentTemplateReactionRegulation.

// evidence 	Evidence 	multiple
private Element addContentTemplateReactionRegulation(BioPaxObject bpObject, Element element) {
    element = addContentControl(bpObject, element);
    TemplateReactionRegulation ob = (TemplateReactionRegulation) bpObject;
    Element tmpElement = null;
    if (ob.getEvidence() != null && ob.getEvidence().size() > 0) {
        List<Evidence> list = ob.getEvidence();
        for (Evidence item : list) {
            tmpElement = new Element("evidence", bp);
            addIDToProperty(tmpElement, item);
            mustPrintObject(item);
            element.addContent(tmpElement);
        }
    }
    return element;
}
Also used : TemplateReactionRegulation(org.vcell.pathway.TemplateReactionRegulation) Element(org.jdom.Element) Evidence(org.vcell.pathway.Evidence)

Aggregations

Element (org.jdom.Element)3 TemplateReactionRegulation (org.vcell.pathway.TemplateReactionRegulation)3 BioPaxObject (org.vcell.pathway.BioPaxObject)2 Evidence (org.vcell.pathway.Evidence)1 GroupObject (org.vcell.pathway.GroupObject)1