Release Planner v1.0

rp.util
Class Res

java.lang.Object
  |
  +--rp.util.Res

public class Res
extends java.lang.Object

Handles resources for the application


Constructor Summary
Res()
           
 
Method Summary
static char getChar(java.lang.String key)
          Gets a char resource.
static int getInt(java.lang.String key)
          Gets n integer resource.
static java.lang.String getString(java.lang.String key)
          Gets a string resource.
static java.util.Vector getStringVector(java.lang.String key)
          Gets a string array resource.
static void setApplication(java.lang.String appName)
          Sets the name of the application
static java.lang.String tryGetString(java.lang.String key)
          Gets a string resource that might not be there.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Res

public Res()
Method Detail

tryGetString

public static java.lang.String tryGetString(java.lang.String key)
Gets a string resource that might not be there.

Parameters:
key - the key for the resource
Returns:
the string or null

getString

public static java.lang.String getString(java.lang.String key)
Gets a string resource.

Parameters:
key - the key for the resource
Returns:
the string or a phrase indicating not found

getStringVector

public static java.util.Vector getStringVector(java.lang.String key)
Gets a string array resource.

Parameters:
key - the key for the resource
Returns:
the string or a phrase indicating not found

getChar

public static char getChar(java.lang.String key)
Gets a char resource.

Parameters:
key - the key for the resource

getInt

public static int getInt(java.lang.String key)
Gets n integer resource.

Parameters:
key - the key for the resource

setApplication

public static void setApplication(java.lang.String appName)
Sets the name of the application


Release Planner v1.0