Examples of XBELCitation


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

        }

        if (citation != null) {
            // Defer to CitationConverter
            CitationConverter cConverter = new CitationConverter();
            XBELCitation xc = cConverter.convert(citation);
            list.add(xc);
        }

        if (evidence != null) {
            list.add(evidence.getValue());
View Full Code Here

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

    public XBELCitation convert(Citation source) {
        if (source == null) {
            return null;
        }

        XBELCitation xc = new XBELCitation();

        xc.setDate(source.getDate());
        xc.setComment(source.getComment());
        xc.setReference(source.getReference());
        xc.setName(source.getName());

        org.openbel.framework.common.enums.CitationType type = source.getType();
        if (type != null) {
            CitationType ct = CitationType.fromValue(type.getDisplayValue());
            xc.setType(ct);
        }

        List<String> authors = source.getAuthors();
        if (hasItems(authors)) {
            AuthorGroup ag = new AuthorGroup();
            List<String> xauthors = ag.getAuthor();
            for (final String author : authors) {
                xauthors.add(author);
            }
            xc.setAuthorGroup(ag);
        }

        return xc;
    }
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.