uk.ac.ed.inf.ogsaconfig.garm.collections.layouts
Interface FileLayout

All Known Implementing Classes:
GARLayout, StandaloneLayout

public interface FileLayout

A file layout is a way of organising different types of files in a common hierarchy. Different containers and archives have different layouts, and this provides a common abstraction


Method Summary
 java.io.File getConcreteHierarchy(VFile vfile)
           
 java.io.File getMetaHierarchy(VFile vfile, FileType type)
           
 FileType getType(VFile vfile)
           
 

Method Detail

getConcreteHierarchy

public java.io.File getConcreteHierarchy(VFile vfile)
Parameters:
vfile - is a classified vfile
Returns:
the hierarchy of this file in the container

getMetaHierarchy

public java.io.File getMetaHierarchy(VFile vfile,
                                     FileType type)
Parameters:
vfile - is an unclassified vfile
type - is the type it is known to have
Returns:
the hierarchy it has within its type

getType

public FileType getType(VFile vfile)
Parameters:
vfile - is an unclassified vfile
Returns:
the type of this file