Package org.codehaus.staxmate.out

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


              elementIsNested = true;
            }
           
            // to allow the XML parser to prune empty element, this line should not be added in all the cases.
            if (elementIsNested) {
              newOutPutElement.addCharacters("\n");
              if (isClosedMathContainer || isClosedAnnotation) {
                newOutPutElement.addCharacters(whiteSpaces);
              }
            }
View Full Code Here


           
            // to allow the XML parser to prune empty element, this line should not be added in all the cases.
            if (elementIsNested) {
              newOutPutElement.addCharacters("\n");
              if (isClosedMathContainer || isClosedAnnotation) {
                newOutPutElement.addCharacters(whiteSpaces);
              }
            }

            writeSBMLElements(parentXmlObject, newOutPutElement,
                streamWriter, nextObjectToWrite, indent + indentCount);
View Full Code Here

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

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

    outputDocument.closeRoot();
View Full Code Here

      }
     
    }
   
   
    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

    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

    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

              elementIsNested = true;
            }
           
            // to allow the XML parser to prune empty element, this line should not be added in all the cases.
            if (elementIsNested) {
              newOutPutElement.addCharacters("\n");
              if (isClosedMathContainer || isClosedAnnotation) {
                newOutPutElement.addCharacters(whiteSpaces);
              }
            }
View Full Code Here

           
            // to allow the XML parser to prune empty element, this line should not be added in all the cases.
            if (elementIsNested) {
              newOutPutElement.addCharacters("\n");
              if (isClosedMathContainer || isClosedAnnotation) {
                newOutPutElement.addCharacters(whiteSpaces);
              }
            }

            writeSBMLElements(parentXmlObject, newOutPutElement,
                streamWriter, nextObjectToWrite, indent + indentCount);
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.