Package com.singularsys.extensions.mathml.parser
Classes to handle parsing of content MathML.
The central class is MathMLDocumentHandler
this is called by the SAX parser every time a xml start or end tag is encountered.
When a tag is found the element name is looked up in a Map and the corresponding
TagHandler
is encountered.
-
Interface Summary Interface Description ConstantHandler.ConstantTypeHandler Methods for individual <cn type="type"> handlersStartTagHandler Interface for handlers which need to be informed of starting tags.TagHandler Interface for handlers which transform individual elements. -
Class Summary Class Description AbstractHandler Base class which provides access to Jep componentsAnnotationHandler Handle <annotation-xml> and <annotation> elements.ApplyHandler Handles the <apply> container element.ConcatReader A Reader implementation which concatinates two readers.ConstantHandler Handles <cn> elements.ConstantHandler.ComplexHandler Parses complex numbers like<cn type="complex-cartesian">1.23<sep/>4.56</cn>
ConstantHandler.ComplexPolarHandler Parses complex numbers like<cn type="complex-polar">1.23<sep/>4.56</cn>
ConstantHandler.ENotationHandler Parses numbers in e-notation like<cn type="e-notation">123<sep/>-2</cn>
ConstantHandler.IntegerHandler Parses integer numbers like<cn type="integer">123</cn>
ConstantHandler.KnownConstantHandler Parses constants like<cn type="constant">π</cn>
ConstantHandler.RationalHandler Parses complex numbers like<cn type="rational">123<sep/>456</cn>
ConstantHandler.RealHandler Parses real numbers like<cn type="real">1.23</cn>
DeclareHandler Handles the <declare> element.FnHandler Handles the <fn> tag.FunctionElement Object returned byStandardFunctionHandler
.IdentifierHandler Converts <cn> elements into jep variable nodes with the same name.LogHandler Handles: <apply><log/>arg</apply> <apply><log/><logbase><cn>2</cn></logbase>arg</apply>MathMLDocumentHandler Central class for parsing MathML.MathTagHandler Handles the <math> element.MatrixHandler Convert <matrix>, <matrixrow>, <vector>, <list> and <set>.MinusHandler Needed to distinguish between Unary and binary minus.NullHandler Just returns null.NumericConstantHandler Handler for MathML elements which correspond to numeric constants, Double.NAN and Double.POSITIVE_INFINITYOperatorHandler Handles elements corresponding to Jep operators.RootHandler Handles: <apply><root/>arg</apply> <apply><root/><degree><cn>3</cn></degree>arg</apply>SelectorHandler Needed to distinguish between Unary and binary minus.SemanticHandler SimpleArrayHandler Returns an array of non null children, flattening nested arrays and Lists.SimpleHandler A simple handler which converts all elements to a tree structure.SimpleHandler.TreeNode A class used to represent the tree.SpecialFunctionHandler Base class for functions and operators which have special arguments.SpecialNode Represents the results returned by theSpecialNodeHandler
.SpecialNodeHandler Handles special elements like <logbase>, <degree> and <sep/>.StackFrame Representation of an element, contains the name, attributes and children of the element.StandardFunctionHandler Handles standard functions like <sin> returnsFunctionElement
.UnSupportedHandler For unsupported tags, handle always throws a SAXParseException.