com.gmail.thejcwk.semantics
Class ProjectConstants

java.lang.Object
  extended by com.gmail.thejcwk.semantics.ProjectConstants

public class ProjectConstants
extends java.lang.Object

Static class that contains project-wide constants.

Version:
0.1
Author:
Jan Kroeze

Nested Class Summary
static class ProjectConstants.DataFile
           
static class ProjectConstants.Subdirectory
           
 
Constructor Summary
ProjectConstants()
           
 
Method Summary
static java.io.File getFile(ProjectConstants.DataFile file)
          Returns a File object specifying a platform-specific, absolute path an important project data file.
static java.io.File getPath(ProjectConstants.Subdirectory dir)
          Returns a platform-specific, absolute path to one of the project's sub-directories.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectConstants

public ProjectConstants()
Method Detail

getPath

public static java.io.File getPath(ProjectConstants.Subdirectory dir)
Returns a platform-specific, absolute path to one of the project's sub-directories.

Parameters:
dir - A member of the Subdirectory enum.
Returns:
The path mentioned above.

getFile

public static java.io.File getFile(ProjectConstants.DataFile file)
Returns a File object specifying a platform-specific, absolute path an important project data file.

Parameters:
file - A member of the DataFile enum, specifying which file to return.
Returns:
A File object.