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 allmath converter factoriesused by W2X.This class is thread-safe.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ElementconvertMath(Element oMath)Convenience method: convert specifiedm:oMathParaorm:oMathelement to amml:mathelement.static MathConvertercreateMathConverter(Element oMath)Convenience method: returns a converter allowing to convert specified OpenXML math element.static voidregister(MathConverterFactory factory)Registers specified factory.
-
-
-
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- am:oMathParaorm:oMathelement to be converted- Returns:
- a factory if found;
nullotherwise
-
-