Enum Class SyncOp

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

public enum SyncOp extends Enum<SyncOp>
The synchronization operations available in folder comparisons. All of them change files and folders on disk.
Since:
2.0
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Copies files and folders from the source to the destination folder hierarchy.
    Makes the destination folder hierarchy exactly the same as the source folder hierarchy.
    Moves files and folders from the source to the destination folder hierarchy.
    Brings non-conflicting changes from Role.ONE and Role.TWO into the destination, typically Role.REF.
    Copies newer and added files and folders from the source to the destination folder hierarchy.
  • Method Summary

    Modifier and Type
    Method
    Description
    static SyncOp
    Returns the enum constant of this class with the specified name.
    static SyncOp[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • COPY

      public static final SyncOp COPY
      Copies files and folders from the source to the destination folder hierarchy.
    • MIRROR

      public static final SyncOp MIRROR
      Makes the destination folder hierarchy exactly the same as the source folder hierarchy.
    • MOVE

      public static final SyncOp MOVE
      Moves files and folders from the source to the destination folder hierarchy.
    • SYNC

      public static final SyncOp SYNC
      Brings non-conflicting 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. Most useful with the Comparison.Method.AS_TEXT comparison method: non-conflicting text changes in files that exist in all three roles are then merged, as with MergeOp.MERGE.

    • UPDATE

      public static final SyncOp UPDATE
      Copies newer and added files and folders from the source to the destination folder hierarchy. Files that are newer in the destination, or exist only there, are left intact.
  • Method Details

    • values

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