Utils.Constants
Class WindsurfProperties

java.lang.Object
  extended by Utils.Constants.WindsurfProperties

public class WindsurfProperties
extends java.lang.Object

Class containing Windsurf-specific constants.


Field Summary
protected static java.lang.String START_PATH
          Base path for relative image addresses
 
Constructor Summary
WindsurfProperties()
           
 
Method Summary
static java.lang.String getIndexPath()
          Returns the base path for index files.
static java.lang.String getPropFile()
          Returns the name of the file containing other constants.
static int getPropSize()
          Returns the number of constants in the properties file.
static java.lang.String getStartPath()
          Returns the base path.
static java.lang.String path2URL(java.lang.String path)
          Given an image path, returns the corresponding URL (prepends the base path).
static void setIndexPath(java.lang.String path)
          Modifies the base path for index files.
static void setPropFile(java.lang.String filename)
          Modifies the name of the file containing other constants.
static void setPropSize(int size)
          Modifies the number of constants in the properties file.
static void setStartPath(java.lang.String path)
          Modifies the base path.
static java.lang.String URL2Path(java.lang.String url)
          Given an image URL, returns the corresponding path (removes the base path).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_PATH

protected static java.lang.String START_PATH
Base path for relative image addresses

Constructor Detail

WindsurfProperties

public WindsurfProperties()
Method Detail

getStartPath

public static java.lang.String getStartPath()
Returns the base path.

Returns:
The base path.

setStartPath

public static void setStartPath(java.lang.String path)
Modifies the base path.

Parameters:
path - The new base path.

getPropFile

public static java.lang.String getPropFile()
Returns the name of the file containing other constants.

Returns:
The name of the file containing other constants.

setPropFile

public static void setPropFile(java.lang.String filename)
Modifies the name of the file containing other constants.

Parameters:
filename - The new name of the file containing other constants.

getPropSize

public static int getPropSize()
Returns the number of constants in the properties file.

Returns:
The number of constants in the properties file.

setPropSize

public static void setPropSize(int size)
Modifies the number of constants in the properties file.

Parameters:
size - The new number of constants in the properties file.

getIndexPath

public static java.lang.String getIndexPath()
Returns the base path for index files.

Returns:
The base path for index files.

setIndexPath

public static void setIndexPath(java.lang.String path)
Modifies the base path for index files.

Parameters:
path - The new base path for index files.

path2URL

public static java.lang.String path2URL(java.lang.String path)
Given an image path, returns the corresponding URL (prepends the base path).

Parameters:
path - Image path.
Returns:
Corresponding URL.

URL2Path

public static java.lang.String URL2Path(java.lang.String url)
Given an image URL, returns the corresponding path (removes the base path).

Parameters:
url - Image URL.
Returns:
Corresponding path.