Examples of XBELHeader


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

     */
    @Override
    public XBELHeader convert(Header source) {
        if (source == null) return null;

        XBELHeader xh = new XBELHeader();

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

        List<String> licenses = source.getLicenses();
        if (hasItems(licenses)) {
            XBELLicenseGroup xlg = new XBELLicenseGroup();
            List<String> xlicenses = xlg.getLicense();
            for (final String license : licenses) {
                xlicenses.add(license);
            }
            xh.setLicenseGroup(xlg);
        }

        String contactInfo = source.getContactInfo();
        String copyright = source.getCopyright();
        String description = source.getDescription();
        String disclaimer = source.getDisclaimer();
        String name = source.getName();
        String version = source.getVersion();

        xh.setContactInfo(contactInfo);
        xh.setCopyright(copyright);
        xh.setDescription(description);
        xh.setDisclaimer(disclaimer);
        xh.setName(name);
        xh.setVersion(version);

        return xh;
    }
View Full Code Here

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

        for (final XBELStatementGroup xsg : xstmtGroups) {
            // Defer to StatementGroupConverter
            stmtGroups.add(sgConverter.convert(xsg));
        }

        XBELHeader header = source.getHeader();
        HeaderConverter hConverter = new HeaderConverter();
        // Defer to HeaderConverter
        Document dest = new Document(hConverter.convert(header), stmtGroups);

        if (source.isSetAnnotationDefinitionGroup()) {
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.