Class SpecialNodeHandler
- java.lang.Object
-
- com.singularsys.extensions.mathml.parser.SpecialNodeHandler
-
- All Implemented Interfaces:
TagHandler
public class SpecialNodeHandler extends java.lang.Object implements TagHandler
Handles special elements like <logbase>, <degree> and <sep/>. Returns aSpecialNode
with the element name and its children.- Author:
- Richard Morris
-
-
Constructor Summary
Constructors Constructor Description SpecialNodeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
handle(StackFrame frame, org.xml.sax.Locator loc)
Transform the element, called when a closing tag is encountered.java.lang.Integer
put(java.lang.String key, java.lang.Integer value)
java.lang.Integer
remove(java.lang.Object key)
-
-
-
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
-
put
public java.lang.Integer put(java.lang.String key, java.lang.Integer value)
-
remove
public java.lang.Integer remove(java.lang.Object key)
-
-