com.digi.config.util
Class DefaultConfigSettings

java.lang.Object
  extended bycom.digi.config.util.DefaultConfigSettings
All Implemented Interfaces:
DefaultValueFinder

public final class DefaultConfigSettings
extends java.lang.Object
implements DefaultValueFinder

This class defines default for all the config settings options


Field Summary
static java.lang.String RESOURCE_BUNDLE_NAME
          The Resource Bundle containing all translatable text for messages
 
Constructor Summary
DefaultConfigSettings()
          Constructor.
 
Method Summary
 java.util.Properties getDefaultCategory(java.lang.String category)
          Gets the default values for a specific category and key
 java.lang.String getDefaultValue(java.lang.String category, java.lang.String key)
          Gets the default values for a specific category and key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_BUNDLE_NAME

public static final java.lang.String RESOURCE_BUNDLE_NAME
The Resource Bundle containing all translatable text for messages

See Also:
Constant Field Values
Constructor Detail

DefaultConfigSettings

public DefaultConfigSettings()
Constructor.

Method Detail

getDefaultValue

public java.lang.String getDefaultValue(java.lang.String category,
                                        java.lang.String key)
Gets the default values for a specific category and key

Specified by:
getDefaultValue in interface DefaultValueFinder
Parameters:
category - is the String name of the category from which the property value should be retrieved. This is a Mandatory parameter.
key - is the String name of the key to the specific property value whose default should be retrieved. This is a Mandatory parameter.
Returns:
the default value for the specified category/key provided. Null will be returned if the category does not exist or if a value does not exist for the specified key within the category.
Throws:
java.lang.IllegalArgumentException - when either the category or key parameter are null.

getDefaultCategory

public java.util.Properties getDefaultCategory(java.lang.String category)
Gets the default values for a specific category and key

Parameters:
category - is the String name of the category from which the property value should be retrieved. This is a Mandatory parameter.
Returns:
the Properties object containing the defaults for the specified category. Null will be returned if the category does not exist
Throws:
java.lang.IllegalArgumentException - when the category parameter is null.


Copyright © 2001-2002 Digi International. All Rights Reserved.