public enum MathMLGranularity extends java.lang.Enum<MathMLGranularity>
Specifies the granularity at which the differences between the two MathML expressions will be represented from the DocumentComparator.
Enum Constant and Description |
---|
ADJACENT
Reports the differences to the MathML by repeating A and B MathML inputs adjacent to each other.
|
DETAILED_ADJACENT
Reports the differences to the MathML by repeating the A and B MathML inputs adjacent to each other, with individual changes
highlighted.
|
INLINE
Reports the differences within the MathML without duplicating A and B.
|
Modifier and Type | Method and Description |
---|---|
static MathMLGranularity |
getMathMLGranularity(java.lang.String val)
Returns the
MathMLGranularity instance representing the supplied String value. |
java.lang.String |
toString()
The camel case string form of each of the enumerated type constants.
|
static MathMLGranularity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MathMLGranularity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MathMLGranularity 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 (#ffcbcb for A and #bbffbb for B) 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.
public static final MathMLGranularity 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 (#ffcbcb for A and #bbffbb for B) by using a style attribute 'mathbackground'.
public static final MathMLGranularity 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 (#ffcbcb for A and #bbffbb for B) by using a style attribute 'mathbackground'.
public static MathMLGranularity[] values()
for (MathMLGranularity c : MathMLGranularity.values()) System.out.println(c);
public static MathMLGranularity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<MathMLGranularity>
public static MathMLGranularity getMathMLGranularity(java.lang.String val)
Returns the MathMLGranularity
instance representing the supplied String value.
This method should not be used under normal circumstances, enum instance values should be used instead.
val
- a Sting representation of a MathMLGranularity
value or null for the default valueMathMLGranularity
instance corresponding to the parameter, or null if the value is invalid