org.at4j.support.entityfs
Interface PotentialDirectory

All Known Implementing Classes:
ExistingDirectory, FutureDirectory

public interface PotentialDirectory

This is a directory that may or may not exist.

Since:
1.0
Author:
Karl Gustafsson

Method Summary
 Directory getDirectory()
          Get the directory, creating it if necessary.
 

Method Detail

getDirectory

Directory getDirectory()
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.

Returns:
The directory or null if the directory could not be created and that is not an error.