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 Details

    • buildChild

      Element buildChild(Node n, Document d) throws JepException
      Call back function to build a child node.
      Parameters:
      n - jep node to build
      d - document to create elements in
      Returns:
      element representing the node
      Throws:
      JepException
    • createElement

      Element createElement(String name, Document doc)
      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

      void setAttribute(Element e, String name, String value)
      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 of
      name - name of attribute
      value - value of attribute