org.entityfs.ostrat
Class AbstractOverwriteStrategy
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractOverwriteStrategy
public AbstractOverwriteStrategy()
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.