Enum Class MathMLGranularity
- All Implemented Interfaces:
Serializable,Comparable<MathMLGranularity>,Constable
Specifies the granularity at which the differences between the two MathML expressions will be represented.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReports the differences to the MathML by repeating A and B MathML inputs adjacent to each other.Reports the differences to the MathML by repeating the A and B MathML inputs adjacent to each other, with individual changes highlighted.Reports the differences within the MathML without duplicating A and B. -
Method Summary
Modifier and TypeMethodDescriptionvalue()static MathMLGranularityReturns the enum constant of this class with the specified name.static MathMLGranularity[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ADJACENT
Reports the differences to the MathML by repeating A and B MathML inputs adjacent to each other. Whole MathML sections will be highlighted by background colours by using a style attribute 'mathbackground'. The advantage of this result is that the MathML will always render correctly if the inputs rendered correctly. Please note that repeating the equation means that it will take up twice as much space so this isn't necessarily the best option if pagination or layout is an issue.
-
DETAILED_ADJACENT
Reports the differences to the MathML by repeating the A and B MathML inputs adjacent to each other, with individual changes highlighted. The individual changes will be highlighted by background colours by using a style attribute 'mathbackground'.
-
INLINE
Reports the differences within the MathML without duplicating A and B. However, due to the nature of some MathML elements and their required argument types, it may be necessary to present the changes at a 'higher' level than that which they occurred at. The inline changes will be highlighted by background colours by using a style attribute 'mathbackground'.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
value
-