Package com.deltawalker.script
Enum Class SyncOp
- All Implemented Interfaces:
Serializable,Comparable<SyncOp>,Constable
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 ConstantsEnum ConstantDescriptionCopies 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.Copies newer and added files and folders from the source to the destination folder hierarchy. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
COPY
Copies files and folders from the source to the destination folder hierarchy. -
MIRROR
Makes the destination folder hierarchy exactly the same as the source folder hierarchy. -
MOVE
Moves files and folders from the source to the destination folder hierarchy. -
SYNC
Brings non-conflicting changes fromRole.ONEandRole.TWOinto the destination, typicallyRole.REF. Passnullas the source role.Available in three-way comparisons only. Most useful with the
Comparison.Method.AS_TEXTcomparison method: non-conflicting text changes in files that exist in all three roles are then merged, as withMergeOp.MERGE. -
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
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
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 nameNullPointerException- if the argument is null
-