Package net.sourceforge.jeuclid
Class DOMBuilder
java.lang.Object
net.sourceforge.jeuclid.DOMBuilder
Builds a MathML tree from a given DOM tree.
- Version:
- $Revision: 5a7becda9147 $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateJeuclidDom(Node node) Constructs a builder with content math support.createJeuclidDom(Node node, boolean supportContent) Constructs a builder.createJeuclidDom(Node node, boolean supportContent, boolean addNamespace) Constructs a builder.static DOMBuilderDeprecated.static DOMBuilder
-
Constructor Details
-
DOMBuilder
protected DOMBuilder()Default constructor.
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance of the DOMBuilder
-
getDOMBuilder
Deprecated.usegetInstance()instead.usegetInstance()instead.- Returns:
- see
getInstance()
-
createJeuclidDom
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
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 childsupportContent- if set to true, content Math will be supported. This impacts performance.- Returns:
- the parsed Document
- See Also:
-
createJeuclidDom
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 childsupportContent- 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:
-
getInstance()instead.