Package org.sbml.jsbml.util

Examples of org.sbml.jsbml.util.SimpleTreeNodeChangeListener


   * @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
   */
  public static void main(String[] args) throws XMLStreamException,
      SBMLException {
    SBMLDocument doc = new SBMLDocument(2, 4);
    doc.addTreeNodeChangeListener(new SimpleTreeNodeChangeListener());
    Model model = doc.createModel("test_model");
   
    Parameter k1 = model.createParameter("k1");
    Parameter k2 = model.createParameter("k2");

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.