Class MathMLConfig

java.lang.Object
com.deltaxml.core.config.MathMLConfig

public class MathMLConfig extends Object

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 Details

    • MathMLConfig

      public MathMLConfig()
      Constructor.
  • Method Details

    • setEnabled

      public void setEnabled(boolean value)

      Sets whether the DocumentComparator should 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

      public void setMathMLGranularity(MathMLGranularity mathMLGranularity)
      Sets the granularity at which the differences between two MathML expressions will be represented. The default is MathMLGranularity.INLINE.
      Parameters:
      mathMLGranularity - an instance of MathMLGranularity
    • getMathMLGranularity

      public MathMLGranularity getMathMLGranularity()
      Returns the granularity setting for MathML comparison results.
      Returns:
      an instance of MathMLGranularity