Examples of XBELObject


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

        // Set statement relationship, if present on source
        Relationship r = source.getRelationship();
        if (r != null)
            dest.setRelationshipType(fromString(r.value()));

        XBELObject object = source.getObject();
        if (object != null) {
            if (object.isSetStatement()) {
                XBELStatement statement = object.getStatement();
                StatementConverter sConverter = new StatementConverter();
                // Defer to StatementConverter
                dest.setObject(new Object(sConverter.convert(statement)));
            } else if (object.isSetTerm()) {
                XBELTerm term = object.getTerm();
                // Defer to TermConverter
                dest.setObject(new Object(tConverter.convert(term)));
            }
        }
View Full Code Here

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

            xstmt.setRelationship(Relationship.fromValue(r.getDisplayValue()));

        Object object = source.getObject();
        if (object != null) {
            if (object.getStatement() != null) {
                XBELObject xo = new XBELObject();
                StatementConverter sConverter = new StatementConverter();
                // Defer to StatementConverter
                xo.setStatement(sConverter.convert(object.getStatement()));
                xstmt.setObject(xo);
            } else if (object.getTerm() != null) {
                XBELObject xo = new XBELObject();
                // Defer to TermConverter
                xo.setTerm(tConverter.convert(object.getTerm()));
                xstmt.setObject(xo);
            }
        }

        return xstmt;
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.