Examples of XBELAnnotationGroup


Examples of org.openbel.bel.xbel.model.XBELAnnotationGroup

        List<Annotation> annotations = source.getAnnotations();
        Citation citation = source.getCitation();
        Evidence evidence = source.getEvidence();

        XBELAnnotationGroup xag = new XBELAnnotationGroup();
        List<Object> list = xag.getAnnotationOrEvidenceOrCitation();

        if (hasItems(annotations)) {
            // Defer to AnnotationConverter
            AnnotationConverter aConverter = new AnnotationConverter();
            for (final Annotation a : annotations) {
View Full Code Here

Examples of org.openbel.bel.xbel.model.XBELAnnotationGroup

        XBELTerm subject = source.getSubject().getTerm();
        TermConverter tConverter = new TermConverter();
        // Defer to TermConverter for statement construction
        Statement dest = new Statement(tConverter.convert(subject));

        XBELAnnotationGroup annotationGroup = source.getAnnotationGroup();
        AnnotationGroupConverter agConverter = new AnnotationGroupConverter();
        // Defer to AnnotationGroupConverter
        dest.setAnnotationGroup(agConverter.convert(annotationGroup));

        String comment = source.getComment();
View Full Code Here

Examples of org.openbel.bel.xbel.model.XBELAnnotationGroup

        if (source == null) return null;

        // Destination type
        StatementGroup dest = new StatementGroup();

        XBELAnnotationGroup annotationGroup = source.getAnnotationGroup();
        AnnotationGroupConverter agConverter = new AnnotationGroupConverter();
        // Defer to AnnotationGroupConverter
        AnnotationGroup ag = agConverter.convert(annotationGroup);
        dest.setAnnotationGroup(ag);
View Full Code Here

Examples of org.openbel.bel.xbel.model.XBELAnnotationGroup

        XBELStatementGroup xsg = new XBELStatementGroup();

        AnnotationGroup ag = source.getAnnotationGroup();
        AnnotationGroupConverter agConverter = new AnnotationGroupConverter();
        // Defer to AnnotationGroupConverter
        XBELAnnotationGroup xag = agConverter.convert(ag);
        xsg.setAnnotationGroup(xag);

        String name = source.getName();
        xsg.setName(name);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.