Package com.xmlmind.w2x.docx.math

## Class MathConverterFactories

- java.lang.Object
- - com.xmlmind.w2x.docx.math.MathConverterFactories

-     public final class MathConverterFactories
      extends Object

  The registry of all `math converter factories` used by W2X.

  This class is thread-safe.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Element` | `convertMath​(Element oMath)` | Convenience method: convert specified `m:oMathPara` or `m:oMath` element to a `mml:math` element.
    `static MathConverter` | `createMathConverter​(Element oMath)` | Convenience method: returns a converter allowing to convert specified OpenXML math element.
    `static void` | `register​(MathConverterFactory factory)` | Registers specified factory.

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

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

- - ### Method Detail

    - #### register

          public static void register​(MathConverterFactory factory)

      Registers specified factory.

    - #### createMathConverter

          public static MathConverter createMathConverter​(Element oMath)

      Convenience method: returns a converter allowing to convert specified OpenXML math element.

      Each registered factory is tested in turn, starting from the last registered ones.

      Parameters:
        `oMath` - a `m:oMathPara` or `m:oMath` element to be converted
      Returns:
        a factory if found; `null` otherwise

    - #### convertMath

          public static Element convertMath​(Element oMath)

      Convenience method: convert specified `m:oMathPara` or `m:oMath` element to a `mml:math` element.
      Parameters:
        `oMath` - a `m:oMathPara` or `m:oMath` element to be converted
      Returns:
        converted `mm:math` or `null` if for any reason the conversion fails