Package org.openbel.framework.ws.model

Examples of org.openbel.framework.ws.model.Statement


     * @param statement
     * @return
     */
    public static Statement
    convert(org.openbel.framework.common.model.Statement statement) {
        Statement wsStmt = OBJECT_FACTORY.createStatement();
        wsStmt.setStatement(statement.toBELShortForm());

        AnnotationGroup group = statement.getAnnotationGroup();
        if (group != null) {
            wsStmt.setCitation(convert(group.getCitation()));
            List<org.openbel.framework.common.model.Annotation> annotations = group.getAnnotations();
            if (hasItems(annotations)) {
                for (org.openbel.framework.common.model.Annotation annotation : annotations) {
                    wsStmt.getAnnotations().add(convert(annotation));
                }
            }
        }
        return wsStmt;
    }
View Full Code Here

TOP

Related Classes of org.openbel.framework.ws.model.Statement

Copyright © 2018 www.massapicom. 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.