net.sourceforge.jeuclid
Class DOMBuilder

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

public class DOMBuilder
extends Object

Builds a MathML tree from a given DOM tree.

Version:
$Revision: 422 $
Author:
Stephan Michels, Max Berger

Constructor Summary
DOMBuilder(Node node, MathBase mathBase)
          Constructs a builder.
 
Method Summary
 DocumentElement getMathRootElement()
          Returns the root element of a math tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMBuilder

public DOMBuilder(Node node,
                  MathBase mathBase)
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
mathBase - Math base
See Also:
MathMLParserSupport
Method Detail

getMathRootElement

public DocumentElement getMathRootElement()
Returns the root element of a math tree.

Returns:
Root element.


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