de.smartics.exceptions.report.generator
Class StringFunction

Package class diagram package StringFunction
java.lang.Object
  extended by de.smartics.exceptions.report.generator.StringFunction

public final class StringFunction
     
     
extends Object

Utilities for this package.

Author:
Robert Reiner

Method Summary
static String getMessage(ResourceBundle bundle, String key, String defaultValue)
          Returns the value associated with the given key in the given bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMessage

public static String getMessage(ResourceBundle bundle,
                                String key,
                                String defaultValue)
Returns the value associated with the given key in the given bundle.

Parameters:
bundle - the resource bundle to search in.
key - the key to the value in the resource bundle to return.
defaultValue - the default value to return if either the bundle or the key is null or the key cannot be found or the value is not a String.
Returns:
the value associated or the default value if no associated value can be found.


Copyright © 2007-$2011 Kronseder & Reiner GmbH - smartics. All Rights Reserved.