|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.kmr.scam.SCAMProperties
This the main property-holder for SCAM. It reads 'scam.properties' from
Title:
Description:
Copyright: Copyright (c) 2002
Company:
Field Summary | |
static String |
FILENAME
The name of the configuration file. |
static String |
RESOURCENAME
|
Constructor Summary | |
SCAMProperties()
|
Method Summary | |
static boolean |
contains(String key)
Check if configuration contains the specified key. |
static String |
get(String key)
Get the corresponding value of the specified key. |
static String |
get(String key,
String defaultValue)
Get the corresponding value of the specified key. |
static int |
getInt(String key)
Get the corresponding int-value of the specified key. |
static int |
getInt(String key,
int defaultValue)
Get the corresponding int-value of the specified key. |
protected static void |
load()
Load properties. |
static void |
set(String key,
String value)
Set the value of a key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String FILENAME
scam.properties
public static final String RESOURCENAME
Constructor Detail |
public SCAMProperties()
Method Detail |
public static boolean contains(String key)
key
- Key
public static String get(String key)
key
- Key
public static String get(String key, String defaultValue)
key
- KeydefaultValue
- Default value
public static int getInt(String key)
key
- Key
get(String)
public static int getInt(String key, int defaultValue)
key
- KeydefaultValue
- Default value
public static void set(String key, String value)
key
- Keyvalue
- Valueprotected static void load()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |