Class SemanticHandler
- java.lang.Object
-
- com.singularsys.extensions.mathml.parser.AbstractHandler
-
- com.singularsys.extensions.mathml.parser.SemanticHandler
-
- All Implemented Interfaces:
StartTagHandler
,TagHandler
public class SemanticHandler extends AbstractHandler implements StartTagHandler
-
-
Constructor Summary
Constructors Constructor Description SemanticHandler(Jep jep, MathMLDocumentHandler mdh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endDoc()
Called at the end of the document.java.lang.Object
handle(StackFrame frame, org.xml.sax.Locator loc)
Transform the element, called when a closing tag is encountered.void
start(StackFrame frame, org.xml.sax.Locator loc)
Called when a starting tag is encountered.void
startDoc()
Called at the start of the document.-
Methods inherited from class com.singularsys.extensions.mathml.parser.AbstractHandler
convertChildrenToNodes, convertToNode, getFt, getJep, getNf, getNumf, getOt, jepNodesAsArray, jepNodesToFlatArray, jepNodesToFlatList
-
-
-
-
Constructor Detail
-
SemanticHandler
public SemanticHandler(Jep jep, MathMLDocumentHandler mdh)
- Parameters:
jep
-mdh
-
-
-
Method Detail
-
handle
public java.lang.Object handle(StackFrame frame, org.xml.sax.Locator loc) throws org.xml.sax.SAXParseException
Description copied from interface:TagHandler
Transform the element, called when a closing tag is encountered.- Specified by:
handle
in interfaceTagHandler
- Parameters:
frame
- StackFrame representing the elementloc
- location in input- Returns:
- typically a Node, other types of objects may also be returned when the tag has a special meaning for its parent node.
- Throws:
org.xml.sax.SAXParseException
-
endDoc
public void endDoc() throws org.xml.sax.SAXException
Description copied from interface:StartTagHandler
Called at the end of the document.- Specified by:
endDoc
in interfaceStartTagHandler
- Throws:
org.xml.sax.SAXException
-
start
public void start(StackFrame frame, org.xml.sax.Locator loc) throws org.xml.sax.SAXParseException
Description copied from interface:StartTagHandler
Called when a starting tag is encountered.- Specified by:
start
in interfaceStartTagHandler
- Throws:
org.xml.sax.SAXParseException
-
startDoc
public void startDoc() throws org.xml.sax.SAXException
Description copied from interface:StartTagHandler
Called at the start of the document.- Specified by:
startDoc
in interfaceStartTagHandler
- Throws:
org.xml.sax.SAXException
-
-