org.at4j.support.entityfs
Class ExistingDirectory

java.lang.Object
  extended by 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

Constructor Summary
ExistingDirectory(Directory dir)
           
 
Method Summary
 Directory getDirectory()
          Get the directory, creating it if necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExistingDirectory

public ExistingDirectory(Directory dir)
Method Detail

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.