Enum Class PatchFormat

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

public enum PatchFormat extends Enum<PatchFormat>
The formats of a ReportKind.PATCH report.
Since:
2.0
  • Enum Constant Details

    • CONTEXT

      public static final PatchFormat CONTEXT
      A patch where changed lines are shown together with some unchanged lines before and after them, which provide context.
    • EDIT_SCRIPT

      public static final PatchFormat EDIT_SCRIPT
      A variation of the NORMAL format.
    • NORMAL

      public static final PatchFormat NORMAL
      The traditional patch format where a stands for added, d for deleted and c for changed. Line numbers of the original file appear before a/d/c and those of the modified file appear after. The less-than and greater-than signs (at the beginning of lines that are added, deleted or changed) indicate which file the lines appear in. Addition lines are added to the original file to appear in the new file. Deletion lines are deleted from the original file to be missing in the new file. By default, lines common to both files are not shown. Lines that have moved are shown as added at their new location and as deleted from their old location.
    • UNIFIED

      public static final PatchFormat UNIFIED
      An improved version of the CONTEXT format that produces a smaller patch, with old and new text shown next to each other.
  • Method Details

    • values

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