Package com.deltaxml.core.config
Class MathMLConfig
java.lang.Object
com.deltaxml.core.config.MathMLConfig
Specifies configuration options for MathML processing. These configuration options can be specified on a
DocumentComparator to configure its behaviour when comparing MathML.
- Since:
- 11.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the granularity setting for MathML comparison results.booleanDetermines whether MathML processing is enabled.voidsetEnabled(boolean value) Sets whether theDocumentComparatorshould use MathML-specific processing.voidsetMathMLGranularity(MathMLGranularity mathMLGranularity) Sets the granularity at which the differences between two MathML expressions will be represented.
-
Constructor Details
-
MathMLConfig
public MathMLConfig()Constructor.
-
-
Method Details
-
setEnabled
public void setEnabled(boolean value) Sets whether the
DocumentComparatorshould use MathML-specific processing.MathML processing is recommended as it will use MathML-aware features when comparing two MathML expressions to ensure that the result can be rendered.
- Parameters:
value- whether to use MathML processing
-
isEnabled
public boolean isEnabled()Determines whether MathML processing is enabled.
- Returns:
- a boolean describing the enabled state of MathML processing
-
setMathMLGranularity
Sets the granularity at which the differences between two MathML expressions will be represented. The default is MathMLGranularity.INLINE.- Parameters:
mathMLGranularity- an instance ofMathMLGranularity
-
getMathMLGranularity
Returns the granularity setting for MathML comparison results.- Returns:
- an instance of
MathMLGranularity
-