Examples of addCharacters()


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

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

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

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

Examples of org.infoset.xml.Element.addCharacters()

            log.info("Creating feed "+target.feed);
            try {
               Document doc = InfosetFactory.getDefaultInfoset().createItemConstructor().createDocument();
               Element feed = doc.createDocumentElement(FeedClient.FEED_NAME);
               Element title = feed.addElement(FeedClient.TITLE_NAME);
               title.addCharacters(target.dir.getName());
               Status status = feedClient.create(doc);
               if (!status.isSuccess()) {
                  log.log(Level.SEVERE,"Cannot create feed "+target.feed+" due to error "+status.getCode());
                  continue;
               }
View Full Code Here

Examples of org.infoset.xml.Element.addCharacters()

                  toRemove.add(e);
               }
            } else if (e.getName().equals(UPDATED_NAME)) {
               modifiedDone = true;
               e.clear();
               e.addCharacters(toXSDDate(modified));
            } else if (e.getName().equals(ENTRY_NAME)) {
               toRemove.add(e);
            }
         }
      }
View Full Code Here

Examples of org.infoset.xml.Element.addCharacters()

         if (c instanceof Element) {
            Element e = (Element)c;
            if (e.getName().equals(ID_NAME)) {
               idDone = true;
               e.clear();
               e.addCharacters("urn:uuid:"+id.toString());
            } else if (e.getName().equals(PUBLISHED_NAME) && created!=null) {
               createdDone = true;
               /*
               e.clear();
               e.addCharacters(toXSDDate(created));
View Full Code Here

Examples of org.infoset.xml.Element.addCharacters()

               modifiedDone = true;
            } else if (e.getName().equals(EDITED_NAME)) {
               editedDone = true;
               e.clear();
               e.setPrefix("app");
               e.addCharacters(toXSDDate(modified));
            } else if (e.getName().equals(AUTHOR_NAME)) {
               author = e;
            } else if (e.getName().equals(LINK_NAME)) {
               String rel = e.getAttributeValue("rel");
               if ("edit".equals(rel)) {
View Full Code Here

Examples of org.infoset.xml.Element.addCharacters()

      if (!modifiedDone) {
         entry.addElement(0,UPDATED_NAME).addCharacters(toXSDDate(modified));
      }
      if (!editedDone) {
         Element e = entry.addElement(0,EDITED_NAME);
         e.addCharacters(toXSDDate(modified));
         e.setPrefix("app");
      }
      if (!createdDone && created!=null) {
         entry.addElement(0,PUBLISHED_NAME).addCharacters(toXSDDate(created));
      }
View Full Code Here

Examples of org.infoset.xml.Element.addCharacters()

         } else {
            idE = doc.getDocumentElement().addElement(0,XML.ID_NAME);
         }
      }
      idE.clear();
      idE.addCharacters(uri);
   }
  
   public String getTitle() {
      Element titleE = doc.getDocumentElement().getFirstElementNamed(XML.TITLE_NAME);
      return titleE==null ? null : titleE.getText();
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.