Examples of BELDocumentHeader


Examples of org.openbel.bel.model.BELDocumentHeader

     * treatment of both custom and default namespaces.
     */
    @Test
    public void testNamespaceGroupConversion() {
        // setup test BELDocument with one default and one custom namespace
        final BELDocumentHeader dh = new BELDocumentHeader("Unit Test",
                "Unit Test", "1.0");
        final Set<BELNamespaceDefinition> nsset = constrainedHashSet(2);
        nsset.add(new BELNamespaceDefinition("HGNC", DEFAULT_NS, true));
        nsset.add(new BELNamespaceDefinition("EGID", NS, false));
        final List<BELStatementGroup> sglist = sizedArrayList(1);
View Full Code Here

Examples of org.openbel.bel.model.BELDocumentHeader

        assertTrue(parse.getSyntaxErrors().isEmpty());

        BELDocument doc = parse.getDocument();
        assertNotNull(doc);

        BELDocumentHeader header = doc.getDocumentHeader();
        assertNotNull(header);

        String name = header.getName();
        assertNotNull(name);
        assertTrue(name.equals("Tabbed\tname\\t"));
    }
View Full Code Here

Examples of org.openbel.bel.model.BELDocumentHeader

        String description = h.getDescription();
        String disclaimer = h.getDisclaimer();
        String license = join(h.getLicenses());
        String version = h.getVersion();

        return new BELDocumentHeader(name, description, version, author,
                copyright,
                contactInfo,
                disclaimer, license);
    }
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.