Interface Policy

All Known Implementing Classes:
FreshenPolicy, PreservePolicy, ReplacePolicy

public interface Policy

A policy specifies the conditions under which one file should be allowed to overwrite another

Method Summary
 boolean replace(VFile currentFile, VFile newFile)

Method Detail


public boolean replace(VFile currentFile,
                       VFile newFile)
currentFile - is the file currently in place
newFile - is the file that is a candidate to replace it
true if the replacement should occur, false otherwise