Examples of BELDocumentConverter


Examples of org.openbel.framework.common.bel.converters.BELDocumentConverter

        sg.getStatements().add(new BELStatement("p(AKT1) => g(EGID:1024)"));
        sglist.add(sg);
        final BELDocument beldoc = new BELDocument(dh, null, nsset, sglist);

        // convert to common model
        final BELDocumentConverter converter = new BELDocumentConverter();
        final Document doc = converter.convert(beldoc);

        // validate namespace group
        final NamespaceGroup nsgroup = doc.getNamespaceGroup();
        assertThat("More than one custom namespace exists.", nsgroup
                .getNamespaces().size(), is(1));
View Full Code Here

Examples of org.openbel.framework.common.bel.converters.BELDocumentConverter

                    }
                }
            }

            final Document bel =
                    new BELDocumentConverter().convert(result.getDocument());

            final org.openbel.framework.common.xbel.converters.DocumentConverter converter =
                    new org.openbel.framework.common.xbel.converters.DocumentConverter();

            new XBELConverter().marshal(converter.convert(bel), output);
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.