Interface MathMLDocumentBuilder
- All Known Implementing Classes:
MathMLContentBuilder
public interface MathMLDocumentBuilder
Interface defining methods of the main builder class which can be used
by individual
MathMLFragmentBuilder fragment builders.- Author:
- Richard Morris
-
Method Summary
Modifier and TypeMethodDescriptionbuildChild(Node n, Document d) Call back function to build a child node.createElement(String name, Document doc) Create an element, if namespacePrefix is set then MathML namespace will be used.voidsetAttribute(Element e, String name, String value) Sets an element attribute using namespaces if required.
-
Method Details
-
buildChild
Call back function to build a child node.- Parameters:
n- jep node to buildd- document to create elements in- Returns:
- element representing the node
- Throws:
JepException
-
createElement
Create an element, if namespacePrefix is set then MathML namespace will be used.- Parameters:
name- local name of element without prefix.doc- document to create an element in.- Returns:
- a new Element
-
setAttribute
Sets an element attribute using namespaces if required. If namespacePrefix is set then MathML namespace will be used and Element.setAttributeNS is called.- Parameters:
e- element to set an attribut ofname- name of attributevalue- value of attribute
-