Search in sources :

Example 1 with BiochemicalPathwayStep

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

the class PathwayReaderBiopax3 method addObjectBiochemicalPathwayStep.

private BiochemicalPathwayStep addObjectBiochemicalPathwayStep(Element element) {
    BiochemicalPathwayStep biochemicalPathwayStep = new BiochemicalPathwayStep();
    addAttributes(biochemicalPathwayStep, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            Element childElement = (Element) child;
            if (!addContentBiochemicalPathwayStep(biochemicalPathwayStep, element, childElement)) {
                showUnexpected(childElement);
            }
        }
    }
    pathwayModel.add(biochemicalPathwayStep);
    return biochemicalPathwayStep;
}
Also used : BiochemicalPathwayStep(org.vcell.pathway.BiochemicalPathwayStep) Element(org.jdom.Element) GroupObject(org.vcell.pathway.GroupObject) BioPaxObject(org.vcell.pathway.BioPaxObject)

Example 2 with BiochemicalPathwayStep

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

the class PathwayProducerBiopax3 method addContentBiochemicalPathwayStep.

// stepConversion 	Conversion 	single
// stepDirection 	String 		single
private Element addContentBiochemicalPathwayStep(BioPaxObject bpObject, Element element) {
    element = addContentPathwayStep(bpObject, element);
    BiochemicalPathwayStep ob = (BiochemicalPathwayStep) bpObject;
    Element tmpElement = null;
    if (ob.getStepConversion() != null) {
        tmpElement = new Element("stepConversion", bp);
        addIDToProperty(tmpElement, ob.getStepConversion());
        mustPrintObject(ob.getStepConversion());
        element.addContent(tmpElement);
    }
    if (ob.getStepDirection() != null && ob.getStepDirection().length() > 0) {
        tmpElement = new Element("stepDirection", bp);
        tmpElement.setAttribute("datatype", schemaString, rdf);
        tmpElement.setText(ob.getStepDirection());
        element.addContent(tmpElement);
    }
    return element;
}
Also used : BiochemicalPathwayStep(org.vcell.pathway.BiochemicalPathwayStep) Element(org.jdom.Element)

Example 3 with BiochemicalPathwayStep

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

the class PathwayReader method addObjectBiochemicalPathwayStep.

private BiochemicalPathwayStep addObjectBiochemicalPathwayStep(Element element) {
    BiochemicalPathwayStep biochemicalPathwayStep = new BiochemicalPathwayStep();
    addAttributes(biochemicalPathwayStep, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            Element childElement = (Element) child;
            if (!addContentBiochemicalPathwayStep(biochemicalPathwayStep, element, childElement)) {
                showUnexpected(childElement, biochemicalPathwayStep);
            }
        }
    }
    pathwayModel.add(biochemicalPathwayStep);
    return biochemicalPathwayStep;
}
Also used : BiochemicalPathwayStep(org.vcell.pathway.BiochemicalPathwayStep) Element(org.jdom.Element) BioPaxObject(org.vcell.pathway.BioPaxObject)

Aggregations

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