1.0.0

org.eclipse.soda.dk.core
Class EscConfiguration

java.lang.Object
  extended by org.eclipse.soda.dk.core.EscConfiguration
All Implemented Interfaces:
ConfigurationService

public class EscConfiguration
extends java.lang.Object
implements ConfigurationService

Version:
1.0.0
See Also:
ConfigurationService

Constructor Summary
EscConfiguration()
          Constructs an instance of this class.
EscConfiguration(java.util.Dictionary properties)
          Constructs an instance of this class from the specified properties parameter.
 
Method Summary
 boolean getBoolean(java.lang.String key, boolean defaultBoolean)
          Get the boolean configuration value.
static ConfigurationService getConfiguration()
          Get the ConfigurationService.
protected  java.util.Properties getDefaultProperties()
          Get the default properties.
 float getFloat(java.lang.String key, float defaultFloat)
          Get float with the specified key and default float parameters and return the float result.
 int getInt(java.lang.String key, int defaultInt)
          /** Get the integer configuration value.
 long getLong(java.lang.String key, long defaultLong)
          /** Get the long configuration value.
 java.lang.Object getObject(java.lang.String key, java.lang.Object defaultObject)
          Get object with the specified key and default object parameters and return the Object result.
 java.util.Dictionary getProperties()
          Get the properties.
 java.lang.Object getProperty(java.lang.String key)
          Get the specified property.
 java.lang.String getString(java.lang.String key, java.lang.String defaultString)
          /** Get the String configuration value.
 void put(java.lang.String key, java.lang.Object value)
          Change/set the specified property value.
static void setConfiguration(ConfigurationService configuration)
          Sets the configuration.
 java.lang.String toString()
          Returns the string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EscConfiguration

public EscConfiguration()
Constructs an instance of this class.

See Also:
EscConfiguration(Dictionary)

EscConfiguration

public EscConfiguration(java.util.Dictionary properties)
Constructs an instance of this class from the specified properties parameter.

Parameters:
properties - The properties (Dictionary) parameter.
See Also:
EscConfiguration()
Method Detail

getConfiguration

public static ConfigurationService getConfiguration()
Get the ConfigurationService.

Returns:
Results of the get configuration (ConfigurationService) value.
See Also:
EscConfiguration(), EscConfiguration(Dictionary), setConfiguration(ConfigurationService)

setConfiguration

public static void setConfiguration(ConfigurationService configuration)
Sets the configuration.

Parameters:
configuration - The configuration service (ConfigurationService) parameter.
See Also:
EscConfiguration(), EscConfiguration(Dictionary), getConfiguration()

getBoolean

public boolean getBoolean(java.lang.String key,
                          boolean defaultBoolean)
Get the boolean configuration value.

Specified by:
getBoolean in interface ConfigurationService
Parameters:
key - The key (String) parameter.
defaultBoolean - The default boolean (boolean) parameter.
Returns:
Results of the get boolean (boolean) value.
See Also:
ConfigurationService.getBoolean(java.lang.String, boolean)

getDefaultProperties

protected java.util.Properties getDefaultProperties()
Get the default properties.

Returns:
Results of the get default properties (Properties) value.

getFloat

public float getFloat(java.lang.String key,
                      float defaultFloat)
Get float with the specified key and default float parameters and return the float result.

Specified by:
getFloat in interface ConfigurationService
Parameters:
key - The key (String) parameter.
defaultFloat - The default float (float) parameter.
Returns:
Results of the get float (float) value.

getInt

public int getInt(java.lang.String key,
                  int defaultInt)
/** Get the integer configuration value.

Specified by:
getInt in interface ConfigurationService
Parameters:
key - The key (String) parameter.
defaultInt - The default int (int) parameter.
Returns:
Results of the get int (int) value.
See Also:
ConfigurationService.getInt(java.lang.String, int)

getLong

public long getLong(java.lang.String key,
                    long defaultLong)
/** Get the long configuration value.

Specified by:
getLong in interface ConfigurationService
Parameters:
key - The key (String) parameter.
defaultLong - The default long (long) parameter.
Returns:
Results of the get long (long) value.
See Also:
ConfigurationService.getLong(java.lang.String, long)

getObject

public java.lang.Object getObject(java.lang.String key,
                                  java.lang.Object defaultObject)
Get object with the specified key and default object parameters and return the Object result.

Specified by:
getObject in interface ConfigurationService
Parameters:
key - The key (String) parameter.
defaultObject - The default object (Object) parameter.
Returns:
Results of the get object (Object) value.

getProperties

public java.util.Dictionary getProperties()
Get the properties.

Specified by:
getProperties in interface ConfigurationService
Returns:
Results of the get properties (Dictionary) value.
See Also:
getDefaultProperties()

getProperty

public java.lang.Object getProperty(java.lang.String key)
Get the specified property.

Parameters:
key - The key (String) parameter.
Returns:
Results of the get property (String) value.

getString

public java.lang.String getString(java.lang.String key,
                                  java.lang.String defaultString)
/** Get the String configuration value.

Specified by:
getString in interface ConfigurationService
Parameters:
key - The key (String) parameter.
defaultString - The default string (String) parameter.
Returns:
Results of the get string (String) value.
See Also:
ConfigurationService.getString(java.lang.String, java.lang.String), toString()

put

public void put(java.lang.String key,
                java.lang.Object value)
Change/set the specified property value.

Parameters:
key - The key (String) parameter.
value - The value (Object) parameter.

toString

public java.lang.String toString()
Returns the string value.

Overrides:
toString in class java.lang.Object
Returns:
The string (String) value.
See Also:
getString(String,String)

1.0.0

Copyright (c) 1999, 2007 IBM