net.sourceforge.jeuclid.elements
Class JEuclidElementFactory

java.lang.Object
  extended by net.sourceforge.jeuclid.elements.JEuclidElementFactory

public final class JEuclidElementFactory
extends Object

Creates MathElements from given element strings.

Version:
$Revision: 550ea09de912 $

Method Summary
static Element elementFromName(String nsUri, String qualifiedName, Document ownerDocument)
          Factory for MathML Elements.
static Constructor<? extends JEuclidElement> getJEuclidElementConstructor(String nsUri, String qualifiedName)
          Retrieve the constructor for an JEuclidElement, if available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJEuclidElementConstructor

public static Constructor<? extends JEuclidElement> getJEuclidElementConstructor(String nsUri,
                                                                                 String qualifiedName)
Retrieve the constructor for an JEuclidElement, if available.

Parameters:
nsUri - namespace of the element
qualifiedName - qualified name
Returns:
A constructor to create the element, or null if no such constructor is available.

elementFromName

public static Element elementFromName(String nsUri,
                                      String qualifiedName,
                                      Document ownerDocument)
Factory for MathML Elements.

Parameters:
nsUri - namespace URI. May be null. May be ignored in the case of MathML.
qualifiedName - name of the element with optional namespace prefix.
ownerDocument - Document this element belongs to.
Returns:
A new MathElement for this tag name.


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