Package org.sbml.jsbml.util

Examples of org.sbml.jsbml.util.SimpleTreeNodeChangeListener


   * @throws XMLStreamException
   * @throws IOException
   */
  public static void main(String[] args) throws XMLStreamException, IOException {
    System.setProperty("log4j.configuration", System.getProperty("user.dir") + "/log4j.properties");
    SBMLWriter.write(SBMLReader.read(new File(args[0])new SimpleTreeNodeChangeListener()), System.out, ' ', (short) 2);
  }
View Full Code Here


   * @param xmlEventReader
   * @return
   * @throws XMLStreamException
   */
  public SBMLDocument readSBML(XMLEventReader xmlEventReader) throws XMLStreamException {
    return readSBML(xmlEventReader, new SimpleTreeNodeChangeListener());
  }
View Full Code Here

   * @param mathML
   * @return
   * @throws XMLStreamException
   */
  public ASTNode readMathML(String mathML) throws XMLStreamException {
    return readMathML(mathML, new SimpleTreeNodeChangeListener());
  }
View Full Code Here

   * @param notesXHTML
   * @return
   * @throws XMLStreamException
   */
  public XMLNode readNotes(String notesXHTML) throws XMLStreamException {
    return readNotes(notesXHTML, new SimpleTreeNodeChangeListener());
  }
View Full Code Here

   * @param stream
   * @return
   * @throws XMLStreamException
   */
  public SBMLDocument readSBMLFromStream(InputStream stream) throws XMLStreamException {
    return readSBMLFromStream(stream, new SimpleTreeNodeChangeListener());
  }
View Full Code Here

          SBMLDocument sbmlDocument = new SBMLDocument();

          // the output of the change listener is activated or not via log4j.properties
          sbmlDocument.addTreeNodeChangeListener(listener == null
              ? new SimpleTreeNodeChangeListener() : listener);

          for (@SuppressWarnings("unchecked")
              Iterator<Attribute> iterator = startElement.getAttributes(); iterator.hasNext();)
          {
            Attribute attr = iterator.next();
View Full Code Here

   * @param xml
   * @return
   * @throws XMLStreamException
   */
  public SBMLDocument readSBMLFromString(String xml) throws XMLStreamException {
    return readSBMLFromString(xml, new SimpleTreeNodeChangeListener());
  }
View Full Code Here

   * @throws XMLStreamException if any other problems prevent to create a {@link SBMLDocument}
   * @throws IOException if the file does not exist or cannot be read.
   *
   */
  public SBMLDocument readSBML(File file) throws XMLStreamException, IOException {
    return readSBML(file, new SimpleTreeNodeChangeListener());
  }
View Full Code Here

   */
  public static void main(String[] args) throws XMLStreamException,
      SBMLException, ParseException {
       
    SBMLDocument doc = new SBMLDocument(2, 4);
    doc.addTreeNodeChangeListener(new SimpleTreeNodeChangeListener());
    Model model = doc.createModel("test_model");
   
    Creator c = new Creator("Hans", "Wurst",
      "Institute for Interesting Biology", "ovidiu.radulescu@univ-rennes1.fr");
    History h = new History();
View Full Code Here

   * @throws XMLStreamException if any other problems prevent to create a {@link SBMLDocument}
   * @throws IOException if the file does not exist or cannot be read.
   *
   */
  public SBMLDocument readSBML(File file) throws XMLStreamException, IOException {
    return readSBML(file, new SimpleTreeNodeChangeListener());
  }
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.util.SimpleTreeNodeChangeListener

Copyright © 2018 www.massapicom. 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.