Class MathMLConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the mathmlGranularity parameter.booleanGets the value of the mathmlProcessing parameter.voidSpecifies type of MathML processing.voidsetMathmlProcessing(boolean value) Specifies whether to apply MathML processing.
-
Constructor Details
-
MathMLConfig
public MathMLConfig()Creates a newMathMLConfiginstance. Parameters for managing the comparison of MathML.
-
-
Method Details
-
isMathmlProcessing
public boolean isMathmlProcessing()Gets the value of the mathmlProcessing parameter.- Returns:
- the value of the mathmlProcessing parameter
-
setMathmlProcessing
public void setMathmlProcessing(boolean value) Specifies whether to apply MathML processing.
MathML processing ensures that when valid (both syntactically and semantically according to the OASIS MathML model documentation) input are provided the result will be a valid MathML.
Simple changes to the MathML equation, such as changing the contents of a MathML element, adding an element is generally represented as fine grain changes. Because MathML attributes can't be represented in the author view, some types of change are difficult to represent at fine granularity, whilst ensuring validity.
Setting this parameter to false turns off this processing, therefore it is possible to generate an invalid MathML equation. However, if table validity is not a concern changes may be represented at finer granularity.
Default:
true- Parameters:
value- boolean value to apply MathML processing.
-
getMathMLGranularity
Gets the value of the mathmlGranularity parameter.- Returns:
- the value of the mathmlGranularity parameter
-
setMathMLGranularity
Specifies type of MathML processing. Will only work if MathMLProcessing is set to 'true'
- Parameters:
value- a value for type of MathML processing- Throws:
IllegalArgumentException- if value is null- See Also:
-