Class MathConverterFactoryImpl

  • All Implemented Interfaces:
    MathConverterFactory

    public final class MathConverterFactoryImpl
    extends Object
    implements MathConverterFactory
    Math converter factory leveraging XSLT stylesheet omml2mml.xsl (a resource of this class) to convert OpenXML math element to MathML.

    This class is thread-safe.

    • Constructor Detail

      • MathConverterFactoryImpl

        public MathConverterFactoryImpl()
    • Method Detail

      • createMathConverter

        public MathConverter createMathConverter​(Element oMath)
                                          throws Exception
        Description copied from interface: MathConverterFactory
        Returns a math converter allowing to convert specified OpenXML math element.
        Specified by:
        createMathConverter in interface MathConverterFactory
        Parameters:
        oMath - a m:oMathPara or m:oMath element to be converted
        Returns:
        converter or null if there is no such converter
        Throws:
        Exception - if for any reason this method fails