org.jscience.ml.sbml.math
Class MathMLConvertorSAX

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.jscience.ml.sbml.math.MathMLConvertorSAX
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class MathMLConvertorSAX
extends org.xml.sax.helpers.DefaultHandler

This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.


Constructor Summary
MathMLConvertorSAX()
          Creates a new MathMLConvertorSAX object.
MathMLConvertorSAX(java.lang.String mathML, boolean isLambda, boolean isRatelaw)
          Creates a new instance of MathMLConvertorSAX
 
Method Summary
 void characters(char[] ch, int start, int length)
          DOCUMENT ME!
 void endDocument()
          DOCUMENT ME!
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          DOCUMENT ME!
 java.util.Hashtable getFunctions()
          DOCUMENT ME!
 SBMLNode getRoot()
          Getter for property root.
 void insertFunction(java.lang.String function)
          DOCUMENT ME!
 void reset()
          DOCUMENT ME!
 void startDocument()
          DOCUMENT ME!
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
          DOCUMENT ME!
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathMLConvertorSAX

public MathMLConvertorSAX()
Creates a new MathMLConvertorSAX object.


MathMLConvertorSAX

public MathMLConvertorSAX(java.lang.String mathML,
                          boolean isLambda,
                          boolean isRatelaw)
                   throws java.lang.Exception
Creates a new instance of MathMLConvertorSAX

Parameters:
mathML - DOCUMENT ME!
isLambda - DOCUMENT ME!
isRatelaw - DOCUMENT ME!
Throws:
java.lang.Exception - DOCUMENT ME!
Method Detail

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
DOCUMENT ME!

Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Parameters:
ch - DOCUMENT ME!
start - DOCUMENT ME!
length - DOCUMENT ME!
Throws:
org.xml.sax.SAXException - DOCUMENT ME!

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
DOCUMENT ME!

Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException - DOCUMENT ME!

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
DOCUMENT ME!

Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
uri - DOCUMENT ME!
localName - DOCUMENT ME!
qName - DOCUMENT ME!
Throws:
org.xml.sax.SAXException - DOCUMENT ME!

getFunctions

public java.util.Hashtable getFunctions()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getRoot

public SBMLNode getRoot()
Getter for property root.

Returns:
Value of property root.

insertFunction

public void insertFunction(java.lang.String function)
DOCUMENT ME!

Parameters:
function - DOCUMENT ME!

reset

public void reset()
DOCUMENT ME!


startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
DOCUMENT ME!

Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException - DOCUMENT ME!

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
DOCUMENT ME!

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
namespaceURI - DOCUMENT ME!
localName - DOCUMENT ME!
qName - DOCUMENT ME!
atts - DOCUMENT ME!
Throws:
org.xml.sax.SAXException - DOCUMENT ME!