|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.util.Defaults
public class Defaults
The Defaults object is used by objects to store and retrieve various default settings.
| Method Summary | |
|---|---|
static String |
getDefault(String key)
Searches for the property with the specified key in the defaults list. |
static String |
getDefault(String key,
String defaultValue)
Searches for the property with the specified key in the defaults list. |
static Defaults |
getInstance()
Method for accessing a Defaults object. |
static Defaults |
initialize(String defaultsFile)
Method for creating or reinitializing a Defaults object. |
static Defaults |
initialize(URL defaultsFile)
Method for creating or reinitializing a Defaults object. |
void |
printProperties()
_more_ |
static void |
putDefault(String key,
String value)
Updates or adds a property to the defaults list. |
static Defaults |
reset()
Reset the defaults using the system defaults file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Defaults getInstance()
throws Exception
Exceptioninitialize(java.net.URL),
reset()public static Defaults initialize(URL defaultsFile)
reset method.
defaultsFile -
reset()public static Defaults initialize(String defaultsFile)
reset method.
defaultsFile -
reset()public static Defaults reset()
public static String getDefault(String key)
null.
key - the defaults key.
null.
public static String getDefault(String key,
String defaultValue)
key - the defaults key.defaultValue - the default value to return if the key
does not exist
public static void putDefault(String key,
String value)
key - the defaults key to update or addvalue - the value of the propertypublic void printProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||