1.0.0

org.eclipse.soda.dk.core.service
Interface ConfigurationService

All Known Implementing Classes:
org.eclipse.soda.dk.testagent.framework.ConfiguredTestCase, ConnectionTransport, EscConfiguration, MulticastTransport, org.eclipse.soda.dk.testagent.framework.NotificationClientTestCase, ProfileAbstractTestCase, ResponseTransport, ThreadTransport, Transport, TunnelTransport, UdpTransport

public interface ConfigurationService

Version:
1.0.0

Method Summary
 boolean getBoolean(java.lang.String key, boolean defaultBoolean)
          Get the boolean value for a configuration key.
 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 value for a configuration key.
 long getLong(java.lang.String key, long defaultLong)
          Get the long value for a configuration key.
 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 String result.
 java.util.Dictionary getProperties()
          Get the configuration properties.
 java.lang.String getString(java.lang.String key, java.lang.String defaultString)
          Get the String value for a configuration key.
 

Method Detail

getBoolean

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

Parameters:
key - Configuration key
defaultBoolean - The default boolean (boolean) parameter.
Returns:
int The boolean value for the configuration key.

getFloat

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

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

getInt

int getInt(java.lang.String key,
           int defaultInt)
Get the integer value for a configuration key.

Parameters:
key - Configuration key
defaultInt - The default int (int) parameter.
Returns:
int The integer value for the configuration key.

getLong

long getLong(java.lang.String key,
             long defaultLong)
Get the long value for a configuration key.

Parameters:
key - Configuration key
defaultLong - The default long (long) parameter.
Returns:
long The long value for the configuration key.

getObject

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 String result.

Parameters:
key - The key (String) parameter.
defaultObject - The default object (Object) parameter.
Returns:
Results of the get object (Object) value.

getProperties

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

Returns:
Results of the get properties (Dictionary) value.

getString

java.lang.String getString(java.lang.String key,
                           java.lang.String defaultString)
Get the String value for a configuration key.

Parameters:
key - Configuration key
defaultString - The default string (String) parameter.
Returns:
String The String value for the configuration key.

1.0.0

Copyright (c) 1999, 2007 IBM