net.sourceforge.jeuclid.parser
Class MathBaseFactory

java.lang.Object
  extended by net.sourceforge.jeuclid.parser.MathBaseFactory

public final class MathBaseFactory
extends Object

Factory class to create MathBase from JAXP Sources.

Version:
$Revision: 434 $
Author:
Max Berger

Method Summary
 MathBase createMathBase(Source source, Map<ParameterKey,String> params)
          Parse an input source and return the MathBase object.
static MathBaseFactory getMathBaseFactory()
          Retrieve the (singleton) MathBaseFactory object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMathBaseFactory

public static MathBaseFactory getMathBaseFactory()
                                          throws ParserConfigurationException
Retrieve the (singleton) MathBaseFactory object.

Returns:
a MathBaseFactory.
Throws:
ParserConfigurationException - when the internal (DOM) parser could not be created.

createMathBase

public MathBase createMathBase(Source source,
                               Map<ParameterKey,String> params)
                        throws IOException
Parse an input source and return the MathBase object.

Parameters:
params - set of parameters to use.
source - the Source to use. Currently supported are DOMSource, StreamSource
Returns:
the MathBase object.
Throws:
IOException - if an I/O error occurs.
IllegalArgumentException - if the Source is of an unsupported object type.


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