net.sourceforge.jeuclid
Class DOMBuilder

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

@ThreadSafe
public final class DOMBuilder
extends Object

Builds a MathML tree from a given DOM tree.

Version:
$Revision: 2bab6eb875e8 $

Constructor Summary
protected DOMBuilder()
          Default constructor.
 
Method Summary
 DocumentElement createJeuclidDom(Node node)
          Constructs a builder with content math support.
 DocumentElement createJeuclidDom(Node node, boolean supportContent)
          Constructs a builder.
 DocumentElement createJeuclidDom(Node node, boolean supportContent, boolean addNamespace)
          Constructs a builder.
static DOMBuilder getDOMBuilder()
          Deprecated. use getInstance() instead.
static DOMBuilder getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMBuilder

protected DOMBuilder()
Default constructor.

Method Detail

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(Node, boolean)

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:
MathMLParserSupport

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:
MathMLParserSupport


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.