2009-01-09 1.2.0

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

All Known Implementing Classes:
org.eclipse.soda.dk.testagent.framework.ConfiguredTestCase, EscConfiguration, org.eclipse.soda.dk.testagent.framework.NotificationClientTestCase, ProfileAbstractTestCase

public interface ConfigurationService

Version:
1.2.0

Method Summary
 boolean getBoolean(java.lang.String key, boolean defaultBoolean)
          Get the boolean value for a configuration key.
 byte getByte(java.lang.String key, byte defaultByte)
          Get byte with the specified key and default byte parameters and return the byte result.
 char getChar(java.lang.String key, char defaultChar)
          Get character with the specified key and default character parameters and return the char result.
 double getDouble(java.lang.String key, double defaultDouble)
          Get double with the specified key and default float parameters and return the float result.
 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.
 short getShort(java.lang.String key, short defaultShort)
          Get short with the specified key and default short parameters and return the short result.
 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 - The key (String) parameter.
defaultBoolean - The default boolean (boolean) parameter.
Returns:
int The boolean value for the configuration key.

getByte

byte getByte(java.lang.String key,
             byte defaultByte)
Get byte with the specified key and default byte parameters and return the byte result.

Parameters:
key - The key (String) parameter.
defaultByte - The default byte (byte) parameter.
Returns:
Results of the get byte (byte) value.
Since:
1.2

getChar

char getChar(java.lang.String key,
             char defaultChar)
Get character with the specified key and default character parameters and return the char result.

Parameters:
key - The key (String) parameter.
defaultChar - The default char (char) parameter.
Returns:
Results of the get character (char) value.
Since:
1.2

getDouble

double getDouble(java.lang.String key,
                 double defaultDouble)
Get double with the specified key and default float parameters and return the float result.

Parameters:
key - The key (String) parameter.
defaultDouble - The default double (double) parameter.
Returns:
Results of the get double (double) value.
Since:
1.2

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 - The key (String) parameter.
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 - The key (String) parameter.
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.

getShort

short getShort(java.lang.String key,
               short defaultShort)
Get short with the specified key and default short parameters and return the short result.

Parameters:
key - The key (String) parameter.
defaultShort - The default short (short) parameter.
Returns:
Results of the get short (short) value.
Since:
1.2

getString

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

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

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.