Class SemanticHandler
java.lang.Object
com.singularsys.extensions.mathml.parser.AbstractHandler
com.singularsys.extensions.mathml.parser.SemanticHandler
- All Implemented Interfaces:
StartTagHandler,TagHandler
Handler for
<semantics> elements.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendDoc()Called at the end of the document.handle(StackFrame frame, Locator loc) Transform the element, called when a closing tag is encountered.voidstart(StackFrame frame, 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 Details
-
SemanticHandler
- Parameters:
jep-mdh-
-
-
Method Details
-
handle
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.
-
endDoc
Description copied from interface:StartTagHandlerCalled at the end of the document.- Specified by:
endDocin interfaceStartTagHandler- Throws:
SAXException
-
start
Description copied from interface:StartTagHandlerCalled when a starting tag is encountered.- Specified by:
startin interfaceStartTagHandler- Parameters:
frame-loc-
-
startDoc
public void startDoc()Description copied from interface:StartTagHandlerCalled at the start of the document.- Specified by:
startDocin interfaceStartTagHandler
-