uk.ac.ed.inf.ogsaconfig.garm.collections
Class Directory

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.collections.ConcreteCollection
        |
        +--uk.ac.ed.inf.ogsaconfig.garm.collections.Directory
All Implemented Interfaces:
FileCollection

public class Directory
extends ConcreteCollection

A directory is a file collection created at initialisation time from a directory on the locally visible filesystem


Constructor Summary
Directory(java.io.File dir)
           
 
Method Summary
protected  java.io.File getFile(VFile vfile)
          getFile returns a file corresponding to the given untyped Vfile (in this directory)
 VFile performAdd(VFile vfile)
          performAdd is the interface subclasses should use to perform any logic they need to do when a file is added to the collection.
 VFile performRemove(VFile vfile)
          performRemove is the interface subclasses should use to perform any logic they need when a file is removed from the collection.
 
Methods inherited from class uk.ac.ed.inf.ogsaconfig.garm.collections.ConcreteCollection
add, bases, contents, contents, destroy, includeAll, includeFile, remove, retrieve, root
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Directory

public Directory(java.io.File dir)
Method Detail

getFile

protected final java.io.File getFile(VFile vfile)
getFile returns a file corresponding to the given untyped Vfile (in this directory)


performAdd

public VFile performAdd(VFile vfile)
Description copied from class: ConcreteCollection
performAdd is the interface subclasses should use to perform any logic they need to do when a file is added to the collection.

Specified by:
performAdd in class ConcreteCollection
Parameters:
vfile - is the file that is being added
Returns:
is the new file that was actually added, or null

performRemove

public VFile performRemove(VFile vfile)
Description copied from class: ConcreteCollection
performRemove is the interface subclasses should use to perform any logic they need when a file is removed from the collection.

Specified by:
performRemove in class ConcreteCollection
Parameters:
vfile - is the file that is being added
Returns:
is the file that was actually removed, or null