Package com.xmlmind.w2x.docx.math

## Class MathConverterFactoryImpl

- java.lang.Object
- - com.xmlmind.w2x.docx.math.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 Summary

    Constructors
    Constructor | Description
    --- | ---
    `MathConverterFactoryImpl()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `MathConverter` | `createMathConverter​(Element oMath)` | Returns a math converter allowing to convert specified OpenXML math element.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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