net.sf.jfilesync.sync2.syncer
Class GenericOption

java.lang.Object
  extended by net.sf.jfilesync.sync2.syncer.GenericOption
All Implemented Interfaces:
SyncOption
Direct Known Subclasses:
HashSyncOption, TimeSyncOption

public abstract class GenericOption
extends java.lang.Object
implements SyncOption

Just a class that implements methods that can be shared between the different syncers (time, hash). For example the delete method is shared. So, no redundancy.

Author:
sascha

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sf.jfilesync.sync2.SyncOption
SyncOption.Direction
 
Constructor Summary
GenericOption()
           
 
Method Summary
protected  SyncAction[] delete(SyncDiffTree tree)
           
 java.lang.String getDirectionDescription(SyncOption.Direction direction)
           
private  boolean isChildIncluded(SyncFile file)
           
protected  boolean uniqueAndNotExcluded(SyncDiffUnique uDiff)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jfilesync.sync2.SyncOption
getDescription, getLeftActionList, getRightActionList, getSupportedDirections
 

Constructor Detail

GenericOption

public GenericOption()
Method Detail

delete

protected SyncAction[] delete(SyncDiffTree tree)

uniqueAndNotExcluded

protected boolean uniqueAndNotExcluded(SyncDiffUnique uDiff)

isChildIncluded

private boolean isChildIncluded(SyncFile file)

getDirectionDescription

public java.lang.String getDirectionDescription(SyncOption.Direction direction)
Specified by:
getDirectionDescription in interface SyncOption