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 voidendDoc()Called at the end of the document.java.lang.Objecthandle(StackFrame frame, org.xml.sax.Locator loc)Transform the element, called when a closing tag is encountered.voidstart(StackFrame frame, org.xml.sax.Locator loc)Called when a starting tag is encountered.voidstartDoc()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:TagHandlerTransform the element, called when a closing tag is encountered.- Specified by:
handlein 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.SAXExceptionDescription copied from interface:StartTagHandlerCalled at the end of the document.- Specified by:
endDocin 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:StartTagHandlerCalled when a starting tag is encountered.- Specified by:
startin interfaceStartTagHandler- Throws:
org.xml.sax.SAXParseException
-
startDoc
public void startDoc() throws org.xml.sax.SAXExceptionDescription copied from interface:StartTagHandlerCalled at the start of the document.- Specified by:
startDocin interfaceStartTagHandler- Throws:
org.xml.sax.SAXException
-
-