cs138.common
Class CS138Properties

java.lang.Object
  extended by cs138.common.CS138Properties

public class CS138Properties
extends java.lang.Object

The CS138Properties class is designed to interact with the properties file cs138.properties. It handles the loading and parsing of the file and provides default values defined by the TAs when the property file is empty.

Author:
csiden

Nested Class Summary
static class CS138Properties.Property
          The list of properties that we currently have defined.
 
Constructor Summary
CS138Properties()
           
 
Method Summary
static int getInteger(CS138Properties.Property prop)
          Return a Property value as an Integer
static java.lang.String getString(CS138Properties.Property prop)
          Return a Property value as a String
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CS138Properties

public CS138Properties()
Method Detail

getString

public static java.lang.String getString(CS138Properties.Property prop)
Return a Property value as a String

Parameters:
prop - The property whose value you want
Returns:
The String value of that property

getInteger

public static int getInteger(CS138Properties.Property prop)
Return a Property value as an Integer

Parameters:
prop - The property whose value you want
Returns:
The Integer value of that property