uk.ac.ed.inf.ogsaconfig.garm.collections.layouts
Class GARLayout

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.collections.layouts.GARLayout
All Implemented Interfaces:
FileLayout

public class GARLayout
extends java.lang.Object
implements FileLayout

This file layout corresponds to the current layout used by GAR files


Constructor Summary
GARLayout()
           
 
Method Summary
 java.io.File getConcreteHierarchy(VFile vfile)
           
 java.io.File getMetaHierarchy(VFile vfile, FileType type)
           
 FileType getType(VFile vfile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GARLayout

public GARLayout()
Method Detail

getConcreteHierarchy

public java.io.File getConcreteHierarchy(VFile vfile)
Specified by:
getConcreteHierarchy in interface FileLayout
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)
Specified by:
getMetaHierarchy in interface FileLayout
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)
Specified by:
getType in interface FileLayout
Parameters:
vfile - is an unclassified vfile
Returns:
the type of this file