uk.ac.ed.inf.ogsaconfig.garm.collections.generators
Interface Generator

All Known Implementing Classes:
WSDDGenerator

public interface Generator

A generator creates files from other files which it registers interest in using add and remove. A generated collection will then deploy these files into lower level collections instead of the files they were created from.


Method Summary
 boolean add(VFile vfile)
          Informs the generator that an attempt has been made to add a file to the collection.
 VFile[] getChangedFiles(VFileSourceSet files)
          This routine returns any files changed since it was last called, typically as a result of add or remove
 boolean remove(VFile vfile)
          Informs the generator that an attempt was made to remove a file from the collection.
 

Method Detail

add

public boolean add(VFile vfile)
Informs the generator that an attempt has been made to add a file to the collection. Should return true if this operation caused one or more generator managed files to change.


remove

public boolean remove(VFile vfile)
Informs the generator that an attempt was made to remove a file from the collection. Should return true if a generated file changed because of this operation


getChangedFiles

public VFile[] getChangedFiles(VFileSourceSet files)
This routine returns any files changed since it was last called, typically as a result of add or remove

Parameters:
files - are the files that should be used for any generation