Enum Class Comparison.State

java.lang.Object
java.lang.Enum<Comparison.State>
com.deltawalker.script.Comparison.State
All Implemented Interfaces:
Serializable, Comparable<Comparison.State>, Constable
Enclosing interface:
Comparison

public static enum Comparison.State extends Enum<Comparison.State>
The states reported to a ComparisonListener through ComparisonEvent.getState().

When a long-running job begins, an event with the corresponding _STARTED state is sent, for instance COMPARE_STARTED; when it finishes, the corresponding _ENDED event follows, in this case COMPARE_ENDED. While a comparison runs, events with the WORKING state may be sent.

In the current release SYNC_STARTED and SYNC_ENDED are not sent.

Since:
2.0
  • Enum Constant Details

    • CLOSED

      public static final Comparison.State CLOSED
      The comparison was closed.
    • COMPARE_ENDED

      public static final Comparison.State COMPARE_ENDED
      A compare job has finished.
    • COMPARE_STARTED

      public static final Comparison.State COMPARE_STARTED
      A compare job has started.
    • MERGE_ENDED

      public static final Comparison.State MERGE_ENDED
      A text merge job has finished.
    • MERGE_STARTED

      public static final Comparison.State MERGE_STARTED
      A text merge job has started.
    • REPORT_ENDED

      public static final Comparison.State REPORT_ENDED
      A report job has finished.
    • REPORT_STARTED

      public static final Comparison.State REPORT_STARTED
      A report job has started.
    • SYNC_ENDED

      public static final Comparison.State SYNC_ENDED
      A folder synchronization job has finished. Not sent in the current release.
    • SYNC_STARTED

      public static final Comparison.State SYNC_STARTED
      A folder synchronization job has started. Not sent in the current release.
    • WORKING

      public static final Comparison.State WORKING
      A job such as compare, merge, sync, print or report is in progress.
  • Method Details

    • values

      public static Comparison.State[] 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 Comparison.State 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