Examples of fromTreeBaseToXml()


Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter.fromTreeBaseToXml()

 
  public void testTreeSearchSerialization() {
    Document doc = DocumentFactory.safeCreateDocument();
    NexmlDocumentWriter ndw = new NexmlDocumentWriter(null, mTaxonLabelHome, doc);   
    TreeSearchResults tsr = ssr.convertToTrees();
    ndw.fromTreeBaseToXml(tsr);
    assertNotNull(doc.getXmlString());
  }
 
  public TaxonLabelHome getTaxonLabelHome() {
    return mTaxonLabelHome;
View Full Code Here

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter.fromTreeBaseToXml()

      StringBuilder builder = new StringBuilder();
     
      if ( getFormat(request) == FORMAT_NEXML ) {
        Document doc = DocumentFactory.safeCreateDocument();
        NexmlDocumentWriter ndw = new NexmlDocumentWriter(null,getTaxonLabelHome(), doc);   
        ndw.fromTreeBaseToXml(treeResults);
        builder.append(doc.getXmlString());
      }
      else {
        Set<PhyloTree> trees =  treeResults.getResults();
        TreeBlock treeBlock = new TreeBlock();
View Full Code Here

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter.fromTreeBaseToXml()

    return ndc;
  }

  public String serialize(NexusDataSet nexusDataSet, Properties properties) {
    NexmlDocumentWriter ndc = getNexmlDocumentConverter(null, properties);
    return ndc.fromTreeBaseToXml(nexusDataSet).getXmlString();
  }
 
  public String serialize(NexusDataSet nexusDataSet, Properties properties,Study study) {
    NexmlDocumentWriter ndc = getNexmlDocumentConverter(study, properties);
    return ndc.fromTreeBaseToXml(nexusDataSet).getXmlString();
View Full Code Here

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter.fromTreeBaseToXml()

    return ndc.fromTreeBaseToXml(nexusDataSet).getXmlString();
  }
 
  public String serialize(NexusDataSet nexusDataSet, Properties properties,Study study) {
    NexmlDocumentWriter ndc = getNexmlDocumentConverter(study, properties);
    return ndc.fromTreeBaseToXml(nexusDataSet).getXmlString();
 

  public String serialize(Study study, Properties properties) {
    NexmlDocumentWriter ndc = getNexmlDocumentConverter(study, properties);
    return ndc.fromTreeBaseToXml(study).getXmlString();
View Full Code Here

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter.fromTreeBaseToXml()

    return ndc.fromTreeBaseToXml(nexusDataSet).getXmlString();
 

  public String serialize(Study study, Properties properties) {
    NexmlDocumentWriter ndc = getNexmlDocumentConverter(study, properties);
    return ndc.fromTreeBaseToXml(study).getXmlString();
  }

}
View Full Code Here

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter.fromTreeBaseToXml()

   */
  public String serialize(NexusDataSet nexusDataSet,Properties properties) {
    NexmlDocumentWriter ndc = getNexmlDocumentConverter(null, properties);
    String result = null;
    try {
      result = transform(ndc.fromTreeBaseToXml(nexusDataSet).getXmlString());
    } catch (DocumentException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (TransformerException e) {
      // TODO Auto-generated catch block
View Full Code Here

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter.fromTreeBaseToXml()

   */
  public String serialize(NexusDataSet nexusDataSet,Properties properties,Study study) {
    NexmlDocumentWriter ndc = getNexmlDocumentConverter(study, properties);
    String result = null;
    try {
      result = transform(ndc.fromTreeBaseToXml(nexusDataSet).getXmlString());
    } catch (DocumentException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (TransformerException e) {
      // TODO Auto-generated catch block
View Full Code Here

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter.fromTreeBaseToXml()

   */
  public String serialize(NexusDataSet nexusDataSet) {
    NexmlDocumentWriter ndc = getNexmlDocumentConverter(null, null);
    String result = null;
    try {
      result = transform(ndc.fromTreeBaseToXml(nexusDataSet).getXmlString());
    } catch (DocumentException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (TransformerException e) {
      // TODO Auto-generated catch block
View Full Code Here

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter.fromTreeBaseToXml()

   */
  public String serialize(Study study,Properties properties) {
    NexmlDocumentWriter ndc = getNexmlDocumentConverter(study, properties);
    String result = null;
    try {
      result = transform(ndc.fromTreeBaseToXml(study).getXmlString());
    } catch (DocumentException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (TransformerException e) {
      // TODO Auto-generated catch block
View Full Code Here

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter.fromTreeBaseToXml()

   */
  public String serialize(Study study) {
    NexmlDocumentWriter ndc = getNexmlDocumentConverter(study, null);
    String result = null;
    try {
      result = transform(ndc.fromTreeBaseToXml(study).getXmlString());
    } catch (DocumentException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (TransformerException e) {
      // TODO Auto-generated catch block
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.