Enum Class TrackChangesAttributeMode

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

public enum TrackChangesAttributeMode extends Enum<TrackChangesAttributeMode>
Attribute representation used with threeway track change output. Note: This setting only works with the result type ThreeWayMergeResultType.THREE_WAY_OXYGEN_TRACK_CHANGES.

Default Setting

The TC_EDIT1 setting is used by default.

  • Enum Constant Details

    • TC_ANCESTOR

      public static final TrackChangesAttributeMode TC_ANCESTOR
      When there are attribute conflicts the attribute value of the 'ancestor' version's is used in the result. 'ancestor' refers to the parameter of that name in the merge methods or the second version supplied using setAncestor method.
    • TC_EDIT1

      public static final TrackChangesAttributeMode TC_EDIT1
      When there are attribute conflicts the attribute value of the 'edit1' version's is used in the result. edit1 refers to the parameter of that name in the merge methods or the first version supplied using addVersion methods.
    • TC_EDIT2

      public static final TrackChangesAttributeMode TC_EDIT2
      When there are attribute conflicts the attribute value of the 'edit2' version's is used in the result. edit2 refers to the parameter of that name in the merge methods or the second version supplied using addVersion methods.
    • PREFIX

      public static final TrackChangesAttributeMode PREFIX
      Uses a prefix notation so that multiple attribute values are presented in case of conflicts. This is achieved by creating different attributes using the version name (such as 'edit1' or 'edit2') as a prefix to the original attribute name and assigning respective attribute values to them.
  • Method Details

    • values

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