Package com.deltaxml.core.config
Enum Class ModifiedWhitespaceBehaviour
- All Implemented Interfaces:
Serializable,Comparable<ModifiedWhitespaceBehaviour>,Constable
Enumeration representing the possible values for handling changes in whitespace. Here, both documents must have some whitespace
at a given point in order for there to be a change in whitespace. This will then be processed in accordance with the specified
behaviour. Whitespace insertions and deletions are not affected by the modified whitespace behaviour.
- Since:
- 7.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe context dependent automatic whitespace setting.Ignore differences in whitespace that is not explicitly preserved.Similar to 'ignore' except that 'A' document's whitespace is kept (instead of the 'B' document's whitespace).Normalize whitespace in inputs before comparison.Display the differences in whitespace where possible. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModifiedWhitespaceBehaviourReturns aModifiedWhitespaceBehaviourobject from the supplied String value if appropriate.toString()Returns a String representation ofModifiedWhitespaceBehaviour.static ModifiedWhitespaceBehaviourReturns the enum constant of this class with the specified name.static ModifiedWhitespaceBehaviour[]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, valueOf
-
Enum Constant Details
-
SHOW
Display the differences in whitespace where possible. In other words, let the whitespace changes identified by the main comparator be present in the result. -
IGNORE
Ignore differences in whitespace that is not explicitly preserved. In other words, take the 'B' document's version of any modified whitespace. -
KEEP_A
Similar to 'ignore' except that 'A' document's whitespace is kept (instead of the 'B' document's whitespace). -
NORMALIZE
Normalize whitespace in inputs before comparison. In other words, remove the potential for whitespace modification, assuming user input filters do not manipulate the whitespace. -
AUTOMATIC
The context dependent automatic whitespace setting. Currently, this has the affect of showing whitespace changes when theResultFormatisResultFormat.DELTA, and ignoring whitespace change in all other contexts.
-
-
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
-
toString
Returns a String representation of
ModifiedWhitespaceBehaviour.- Overrides:
toStringin classEnum<ModifiedWhitespaceBehaviour>- Returns:
- a String representing the
ModifiedWhitespaceBehaviourobject
-
getModifedWhitespaceBehaviour
Returns a
ModifiedWhitespaceBehaviourobject from the supplied String value if appropriate.This method should not be used under normal circumstances, enum instance values should be used instead.
- Parameters:
value- a String representation of aModifiedWhitespaceBehaviourvalue- Returns:
- the
ModifiedWhitespaceBehaviourinstance corresponding to the parameter, or null if the value is invalid
-