Enum Class ModifiedWhitespaceBehaviour

java.lang.Object
java.lang.Enum<ModifiedWhitespaceBehaviour>
com.deltaxml.core.config.ModifiedWhitespaceBehaviour
All Implemented Interfaces:
Serializable, Comparable<ModifiedWhitespaceBehaviour>, Constable

public enum ModifiedWhitespaceBehaviour extends Enum<ModifiedWhitespaceBehaviour>
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
  • Enum Constant Details

    • SHOW

      public static final ModifiedWhitespaceBehaviour 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

      public static final ModifiedWhitespaceBehaviour 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

      public static final ModifiedWhitespaceBehaviour KEEP_A
      Similar to 'ignore' except that 'A' document's whitespace is kept (instead of the 'B' document's whitespace).
    • NORMALIZE

      public static final ModifiedWhitespaceBehaviour 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

      public static final ModifiedWhitespaceBehaviour AUTOMATIC
      The context dependent automatic whitespace setting. Currently, this has the affect of showing whitespace changes when the ResultFormat is ResultFormat.DELTA, and ignoring whitespace change in all other contexts.
  • Method Details