visidia.misc
Class VisidiaSettings

java.lang.Object
  extended by visidia.misc.VisidiaSettings

public class VisidiaSettings
extends java.lang.Object

The Class VisidiaSettings.


Nested Class Summary
 class VisidiaSettings.Constants
          The Class Constants.
 
Method Summary
 boolean getBoolean(java.lang.String key)
          Gets the boolean value associated with key.
 boolean getDefaultBoolean(java.lang.String key)
          Gets the default boolean value associated with key.
 double getDefaultDouble(java.lang.String key)
          Gets the default double value associated with key.
 int getDefaultInt(java.lang.String key)
          Gets the default integer value associated with key.
 java.lang.Object getDefaultObject(java.lang.String key)
          Gets the default object associated with key.
 java.lang.String getDefaultString(java.lang.String key)
          Gets the default string associated with key.
 double getDouble(java.lang.String key)
          Gets the double value associated with key.
static VisidiaSettings getInstance()
          Gets the single instance of VisidiaSettings.
 int getInt(java.lang.String key)
          Gets the integer value associated with key.
 java.lang.Object getObject(java.lang.String key)
          Gets the object associated with key.
 java.lang.String getString(java.lang.String key)
          Gets the string associated with key.
 void set(java.lang.String key, java.lang.Object value)
          Sets the value associated with key.
 void setDefault(java.lang.String key, java.lang.Object value)
          Sets the default value associated with key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static VisidiaSettings getInstance()
Gets the single instance of VisidiaSettings.

Returns:
single instance of VisidiaSettings

getDefaultBoolean

public boolean getDefaultBoolean(java.lang.String key)
Gets the default boolean value associated with key.

Parameters:
key - the key
Returns:
the default boolean value associated with key, or false if no value is associated with key

getDefaultDouble

public double getDefaultDouble(java.lang.String key)
Gets the default double value associated with key.

Parameters:
key - the key
Returns:
the default double value associated with key, or 0 if no value is associated with key

getDefaultInt

public int getDefaultInt(java.lang.String key)
Gets the default integer value associated with key.

Parameters:
key - the key
Returns:
the default integer value associated with key, or 0 if no value is associated with key

getDefaultString

public java.lang.String getDefaultString(java.lang.String key)
Gets the default string associated with key.

Parameters:
key - the key
Returns:
the default string associated with key, or the empty string if no value is associated with key

getDefaultObject

public java.lang.Object getDefaultObject(java.lang.String key)
Gets the default object associated with key.

Parameters:
key - the key
Returns:
the default object associated with key, or null if no object is associated with key

setDefault

public void setDefault(java.lang.String key,
                       java.lang.Object value)
Sets the default value associated with key.

Parameters:
key - the key
value - the value

getBoolean

public boolean getBoolean(java.lang.String key)
Gets the boolean value associated with key.

Parameters:
key - the key
Returns:
the boolean value associated with key, or the default value if no value is associated with key

getDouble

public double getDouble(java.lang.String key)
Gets the double value associated with key.

Parameters:
key - the key
Returns:
the double value associated with key, or the default value if no value is associated with key

getInt

public int getInt(java.lang.String key)
Gets the integer value associated with key.

Parameters:
key - the key
Returns:
the integer value associated with key, or the default value if no value is associated with key

getString

public java.lang.String getString(java.lang.String key)
Gets the string associated with key.

Parameters:
key - the key
Returns:
the string associated with key, or the default value if no value is associated with key

getObject

public java.lang.Object getObject(java.lang.String key)
Gets the object associated with key.

Parameters:
key - the key
Returns:
the object

set

public void set(java.lang.String key,
                java.lang.Object value)
Sets the value associated with key.

Parameters:
key - the key
value - the value