Examples of addCharacters()


Examples of org.codehaus.staxmate.out.SMOutputDocument.addCharacters()

        sbmlDocument.getVersion());
    SMOutputContext context = outputDocument.getContext();
    context.setIndentation("\n" + createIndentationString(indentCount), 1, 2);
    SMNamespace namespace = context.getNamespace(SBMLNamespace);
    namespace.setPreferredPrefix("");
    outputDocument.addCharacters("\n");

    /*
     * Write a comment to track which program created this SBML file and
     * which version of JSBML was used for this purpose.
     */
 
View Full Code Here

Examples of org.codehaus.staxmate.out.SMOutputDocument.addCharacters()

      String msg = " Created by {0} version {1} on {2} with JSBML version {3}. ";
      outputDocument.addComment(
        MessageFormat.format(msg, programName, (programVersion != null)
              && (programVersion.length() > 0) ? programVersion
              : "?", date, JSBML.getJSBMLDottedVersion()));
      outputDocument.addCharacters("\n");
    }

    SMOutputElement smOutputElement = outputDocument.addElement(namespace,
        sbmlDocument.getElementName());
View Full Code Here

Examples of org.codehaus.staxmate.out.SMOutputDocument.addCharacters()

        sbmlDocument.getVersion());
    SMOutputContext context = outputDocument.getContext();
    context.setIndentation("\n" + createIndentationString(indentCount), 1, 2);
    SMNamespace namespace = context.getNamespace(SBMLNamespace);
    namespace.setPreferredPrefix("");
    outputDocument.addCharacters("\n");

    /*
     * Write a comment to track which program created this SBML file and
     * which version of JSBML was used for this purpose.
     */
 
View Full Code Here

Examples of org.codehaus.staxmate.out.SMOutputDocument.addCharacters()

      String msg = " Created by %s version %s on %s with jsbml version %s. ";
      outputDocument.addComment(
        String.format(msg, programName, (programVersion != null)
              && (programVersion.length() > 0) ? programVersion
              : "?", date, JSBML.getJSBMLDottedVersion()));
      outputDocument.addCharacters("\n");
    }

    SMOutputElement smOutputElement = outputDocument.addElement(namespace,
        sbmlDocument.getElementName());
View Full Code Here

Examples of org.codehaus.staxmate.out.SMOutputDocument.addCharacters()

        sbmlDocument.getVersion());
    SMOutputContext context = outputDocument.getContext();
    context.setIndentation("\n" + createIndentationString(indentCount), 1, 2);
    SMNamespace namespace = context.getNamespace(SBMLNamespace);
    namespace.setPreferredPrefix("");
    outputDocument.addCharacters("\n");

    /*
     * Write a comment to track which program created this SBML file and
     * which version of JSBML was used for this purpose.
     */
 
View Full Code Here

Examples of org.codehaus.staxmate.out.SMOutputDocument.addCharacters()

      String msg = " Created by %s version %s on %s with jsbml version %s. ";
      outputDocument.addComment(
        String.format(msg, programName, (programVersion != null)
              && (programVersion.length() > 0) ? programVersion
              : "?", date, JSBML.getJSBMLDottedVersion()));
      outputDocument.addCharacters("\n");
    }

    SMOutputElement smOutputElement = outputDocument.addElement(namespace,
        sbmlDocument.getElementName());
View Full Code Here

Examples of org.codehaus.staxmate.out.SMOutputElement.addCharacters()

    }
    if (sbmlDocument.isSetAnnotation()) {
      writeAnnotation(sbmlDocument, smOutputElement, streamWriter,
          indent, false);
    }
    smOutputElement.addCharacters("\n");

    writeSBMLElements(xmlObject, smOutputElement, streamWriter,
        sbmlDocument, indent);

    outputDocument.closeRoot();
View Full Code Here

Examples of org.codehaus.staxmate.out.SMOutputElement.addCharacters()

      }
     
    }
   
   
    rdfElement.addCharacters("\n");
    rdfElement.setIndentation(whiteSpace + createIndentationString(indentCount), indent + indentCount, indentCount);
    SMOutputElement descriptionElement = rdfElement.addElement(namespace,
        "Description");
    descriptionElement.addAttribute(namespace, "about",
        annotation.getAbout());
View Full Code Here

Examples of org.codehaus.staxmate.out.SMOutputElement.addCharacters()

    rdfElement.setIndentation(whiteSpace + createIndentationString(indentCount), indent + indentCount, indentCount);
    SMOutputElement descriptionElement = rdfElement.addElement(namespace,
        "Description");
    descriptionElement.addAttribute(namespace, "about",
        annotation.getAbout());
    descriptionElement.addCharacters("\n");
    if (annotation.isSetHistory()) {
      writeHistory(annotation.getHistory(), rdfNamespaces, writer,
          indent + 4);
    }
    if (annotation.getListOfCVTerms().size() > 0) {
View Full Code Here

Examples of org.codehaus.staxmate.out.SMOutputElement.addCharacters()

    if (annotation.getListOfCVTerms().size() > 0) {
      writeCVTerms(annotation.getListOfCVTerms(), rdfNamespaces, writer,
          indent + indentCount);
    }
    descriptionElement.setIndentation(whiteSpace + createIndentationString(indentCount), indent + indentCount, indentCount);
    descriptionElement.addCharacters(whiteSpace + createIndentationString(indentCount));
    annotationElement.setIndentation(whiteSpace, indent, indentCount);
    rdfElement.addCharacters("\n");
    rdfElement.addCharacters(whiteSpace);
    annotationElement.addCharacters("\n");
  }
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.