Search in sources :

Example 1 with BindingFeatureImpl

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

the class PathwayReader method addObjectBindingFeature.

private BindingFeature addObjectBindingFeature(Element element) {
    BindingFeature bindingFeature = new BindingFeatureImpl();
    addAttributes(bindingFeature, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            Element childElement = (Element) child;
            if (!addContentBindingFeature(bindingFeature, element, childElement)) {
                showUnexpected(childElement, bindingFeature);
            }
        }
    }
    pathwayModel.add(bindingFeature);
    return bindingFeature;
}
Also used : CovalentBindingFeature(org.vcell.pathway.CovalentBindingFeature) BindingFeature(org.vcell.pathway.BindingFeature) BindingFeatureImpl(org.vcell.pathway.BindingFeatureImpl) Element(org.jdom.Element) BioPaxObject(org.vcell.pathway.BioPaxObject)

Example 2 with BindingFeatureImpl

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

the class PathwayReaderBiopax3 method addObjectBindingFeature.

private BindingFeature addObjectBindingFeature(Element element) {
    BindingFeature bindingFeature = new BindingFeatureImpl();
    addAttributes(bindingFeature, element);
    for (Object child : element.getChildren()) {
        if (child instanceof Element) {
            Element childElement = (Element) child;
            if (!addContentBindingFeature(bindingFeature, element, childElement)) {
                showUnexpected(childElement);
            }
        }
    }
    pathwayModel.add(bindingFeature);
    return bindingFeature;
}
Also used : CovalentBindingFeature(org.vcell.pathway.CovalentBindingFeature) BindingFeature(org.vcell.pathway.BindingFeature) BindingFeatureImpl(org.vcell.pathway.BindingFeatureImpl) Element(org.jdom.Element) GroupObject(org.vcell.pathway.GroupObject) BioPaxObject(org.vcell.pathway.BioPaxObject)

Aggregations

Element (org.jdom.Element)2 BindingFeature (org.vcell.pathway.BindingFeature)2 BindingFeatureImpl (org.vcell.pathway.BindingFeatureImpl)2 BioPaxObject (org.vcell.pathway.BioPaxObject)2 CovalentBindingFeature (org.vcell.pathway.CovalentBindingFeature)2 GroupObject (org.vcell.pathway.GroupObject)1