Examples of NexmlDocumentWriter


Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter

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

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter

      String fileName = "TB" + date.getTime();
      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

    } catch (URISyntaxException e) {
      e.printStackTrace();
    } catch (ParserConfigurationException e) {
      e.printStackTrace();
    }
    NexmlDocumentWriter ndc = new NexmlDocumentWriter(study,getTaxonLabelHome(),document,baseURI);
    return ndc;
  }
View Full Code Here

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter

    NexmlDocumentWriter ndc = new NexmlDocumentWriter(study,getTaxonLabelHome(),document,baseURI);
    return ndc;
  }

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

Examples of org.cipres.treebase.domain.nexus.nexml.NexmlDocumentWriter

    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

    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

 
  /**
   *
   */
  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

 
  /**
   *
   */
  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

 
  /**
   *
   */
  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

  /**
   *
   */
  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
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.