org.entityfs.ostrat
Class AbstractOverwriteStrategy

java.lang.Object
  extended by org.entityfs.ostrat.AbstractOverwriteStrategy
All Implemented Interfaces:
OverwriteStrategy
Direct Known Subclasses:
DontOverwrite, DontOverwriteAndLogWarning, DontOverwriteAndThrowException, DoOverwrite, DoOverwriteAndLogWarning

public abstract class AbstractOverwriteStrategy
extends Object
implements OverwriteStrategy

Abstract base class for OverwriteStrategy implementations.

Since:
1.1
Author:
Karl Gustafsson
In_jar:
entityfs-core

Constructor Summary
AbstractOverwriteStrategy()
           
 
Method Summary
protected  void verifyTargetDirectory(File dir)
          Verify that the argument is an existing directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.entityfs.ostrat.OverwriteStrategy
overwrite, overwrite
 

Constructor Detail

AbstractOverwriteStrategy

public AbstractOverwriteStrategy()
Method Detail

verifyTargetDirectory

protected void verifyTargetDirectory(File dir)
                              throws EntityNotFoundException,
                                     NotADirectoryException
Verify that the argument is an existing directory.

Parameters:
dir - The directory to verify.
Throws:
EntityNotFoundException - If the directory does not exist.
NotADirectoryException - If the argument exists, but is not a directory.