org.at4j.support.entityfs
Class ExistingDirectory
java.lang.Object
org.at4j.support.entityfs.ExistingDirectory
- All Implemented Interfaces:
- PotentialDirectory
public final class ExistingDirectory
- extends Object
- implements PotentialDirectory
This is a potential directory that already exists.
- Since:
- 1.0
- Author:
- Karl Gustafsson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExistingDirectory
public ExistingDirectory(Directory dir)
getDirectory
public Directory getDirectory()
- Description copied from interface:
PotentialDirectory
- Get the directory, creating it if necessary.
If, for some reason, the directory could not be created without that
being an error (due to an OverwriteStrategy,
for instance), this method should return null.
- Specified by:
getDirectory in interface PotentialDirectory
- Returns:
- The directory or
null if the directory could not be
created and that is not an error.