uk.ac.ed.inf.ogsaconfig.garm.util
Class VFileSourceSet

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.util.VFileSet
        |
        +--uk.ac.ed.inf.ogsaconfig.garm.util.VFileSourceSet

public class VFileSourceSet
extends VFileSet

Implements a set of VFiles, but unlike VFileSet will allow multiple equals() files provided they have different sources: the set maintained is source unique


Constructor Summary
VFileSourceSet()
           
 
Method Summary
 void add(VFile vfile)
          Adds a new file to the set, replacing any file from the same source already present
 void remove(VFile vfile)
          Removes any equals() file from the set with the same source
 VFile retrieve(VFile vfile)
          Returns the equivalent file stored for this one, where equivalence includes equal source here
 VFile[] retrieveAll(VFile vfile)
          Returns all files in this set that are equal, from any source
 VFile[] toArray()
          Returns an array of the files present in the set
 
Methods inherited from class uk.ac.ed.inf.ogsaconfig.garm.util.VFileSet
narrow, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFileSourceSet

public VFileSourceSet()
Method Detail

add

public void add(VFile vfile)
Adds a new file to the set, replacing any file from the same source already present

Overrides:
add in class VFileSet

remove

public void remove(VFile vfile)
Removes any equals() file from the set with the same source

Overrides:
remove in class VFileSet

retrieve

public VFile retrieve(VFile vfile)
Returns the equivalent file stored for this one, where equivalence includes equal source here

Overrides:
retrieve in class VFileSet

retrieveAll

public VFile[] retrieveAll(VFile vfile)
Returns all files in this set that are equal, from any source


toArray

public VFile[] toArray()
Returns an array of the files present in the set

Overrides:
toArray in class VFileSet