Enum Class MergeOp

java.lang.Object
java.lang.Enum<MergeOp>
com.deltawalker.script.MergeOp
All Implemented Interfaces:
Serializable, Comparable<MergeOp>, Constable

public enum MergeOp extends Enum<MergeOp>
The merge operations available in text comparisons.
Since:
2.0
See Also:
  • Enum Constant Details

    • APPEND

      public static final MergeOp APPEND
      Copies the text of a DeltaRange from the source Role and inserts it at the start of the range in the destination role, keeping the destination's text.
    • MERGE

      public static final MergeOp MERGE
      Copies non-conflicting, that is non-overlapping, changes from Role.ONE and Role.TWO into the destination, typically Role.REF. Pass null as the source role.

      Available in three-way comparisons only.

    • REPLACE

      public static final MergeOp REPLACE
      Replaces the text of a DeltaRange in the destination Role with its text in the source role.
  • Method Details

    • values

      public static MergeOp[] 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

      public static MergeOp valueOf(String name)
      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 name
      NullPointerException - if the argument is null