Class DOMBuilder

java.lang.Object
net.sourceforge.jeuclid.DOMBuilder

@ThreadSafe public final class DOMBuilder extends Object
Builds a MathML tree from a given DOM tree.
Version:
$Revision: 5a7becda9147 $
  • Constructor Details

    • DOMBuilder

      protected DOMBuilder()
      Default constructor.
  • Method Details

    • getInstance

      public static DOMBuilder getInstance()
      Returns:
      the singleton instance of the DOMBuilder
    • getDOMBuilder

      @Deprecated public static DOMBuilder getDOMBuilder()
      Deprecated.
      use getInstance() instead.
      use getInstance() instead.
      Returns:
      see getInstance()
    • createJeuclidDom

      public DocumentElement createJeuclidDom(Node node)
      Constructs a builder with content math support.
      Parameters:
      node - The MathML document. Can be an instance of Document, Element or DocumentFragment with Element child
      Returns:
      the parsed Document
      See Also:
    • createJeuclidDom

      public DocumentElement createJeuclidDom(Node node, boolean supportContent)
      Constructs a builder.

      This constructor needs a valid DOM Tree. To obtain a DOM tree, you may use MathMLParserSupport.

      Parameters:
      node - The MathML document. Can be an instance of Document, Element or DocumentFragment with Element child
      supportContent - if set to true, content Math will be supported. This impacts performance.
      Returns:
      the parsed Document
      See Also:
    • createJeuclidDom

      public DocumentElement createJeuclidDom(Node node, boolean supportContent, boolean addNamespace)
      Constructs a builder.

      This constructor needs a valid DOM Tree. To obtain a DOM tree, you may use MathMLParserSupport.

      Parameters:
      node - The MathML document. Can be an instance of Document, Element or DocumentFragment with Element child
      supportContent - if set to true, content Math will be supported. This impacts performance.
      addNamespace - if set to true, the MathML namespace will be added to all elements.
      Returns:
      the parsed Document
      See Also: